Do Aliqua Magna Aliqua
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce aliquet turpis at orci bibendum, non convallis justo tempor.
Dolore Et Et Aliqua
Maecenas euismod sapien eu arcu convallis, vitae vestibulum ipsum maximus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae. Sed auctor augue id tellus lacinia, nec ultricies est fermentum. Vestibulum ante ipsum primis in faucibus.
Incididunt Consectetur Consectetur Eiusmod
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nec orci at nulla consequat congue ut non arcu. Cras sit amet velit id nulla tempus dictum sit amet eu nisi. Donec eu felis at libero consequat sagittis a et urna. Integer rutrum ante et nunc venenatis, id ultricies risus.
Incididunt Sit Ut Ut
Fusce aliquet turpis at orci bibendum, non convallis justo tempor. Maecenas euismod sapien eu arcu convallis, vitae vestibulum ipsum maximus. Praesent nec orci at nulla.
Labore Consectetur Elit
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae. Maecenas euismod sapien eu arcu convallis, vitae vestibulum ipsum maximus.
Labore Elit Sit Dolore
Fusce aliquet turpis at orci bibendum, non convallis justo tempor. Integer rutrum ante et nunc venenatis, id ultricies risus ultricies. Integer rutrum ante et nunc venenatis, id ultricies.
Labore Et Incididunt Ipsum
Integer rutrum ante et nunc venenatis, id ultricies risus ultricies. Donec eu felis at libero consequat sagittis a et urna.
Labore Incididunt Aliqua Elit
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae. Praesent nec orci at nulla cons.
Sit Incididunt
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet velit id nulla tempus dictum sit ame.
Ut Tempor
Integer rutrum ante et nunc venenatis, id ultricies risus ultricies. Vivamus vitae arcu vel velit efficitur vestibulum vel in purus. Praesent nec orci at nulla consequat congue ut non arcu. Donec eu felis at libero consequat sagittis a et urna

Webflow CMS + Class Attribute

This page demonstrates how to leverage the Webflow CMS and the newly unlocked ability to use the class attribute on items, along with the addition of custom properties.

Use Case: Customizing Grid Items

This specific use case showcases how to set specific items in a CMS collection grid to be either tall or wide, altering the amount of space they take up in the grid. The default state, when no wide/tall selection is made, is square. This ensures fallback protection and simplicity.

Background

This implementation is based on a tutorial by Timothy Ricks, adapted from his original version that used custom code and attributes + a CMS attribute value to achieve the same effect. The key advantage of this version is that much of the code remains within the Webflow Designer, which is beneficial in most circumstances.

A note: Demonstration Cards

The cards on this page have some fancy transitions and custom code driving them. They are here primarily for demonstration purposes and to satisfy my need to tinker.

Resources

Original Tutorial by Timothy Ricks: “Dynamic CMS Grid in Webflow”

Webflow Update: “Add classes as custom attributes to elements”

Webflow Update: “Custom CSS properties and values”

Grab the cloneable here: Cloneable Link

Created by: Tony Seets