Hi guys! ๐ I'm not sure where to put this question, but is it possible to add a CMS collection to this beautiful component Layout 415? ๐
The elements are visible based on the class they have so I assume this can be tricky with Webflow (as I can't add a class in the CMS that will be added automatically).
But maybe there's a solution?
Thanks in advance!
I would use ::nth-of-type pseudo class
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type
So basically every card has the same class (sticky-card for example).
Then, you add custom CSS.
sticky-card::nth-of-type(1){ margin-top: 0; ... } sticky-card::nth-of-type(2){ margin-top: 20px; ... } and so on
Might be worth looking into these Finsweet attributes. One might just be worth it. - But it also might not. I just know itโs relatively easy to implement.
https://finsweet.com/attributes
Thanks - I was thinking about and I saw that Finsweet had something similar in their CMS library scripts - but thatโs not supported anymore (although still might work): https://finsweet.com/cms-library/add-classes
I was looking for something similar in Attributes but couldnโt find it (and Iโve moved to another task in the meantime ๐ )