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
Let me know if you managed to do it this way
I鈥檒l need to investigate - I鈥檓 a designer, so it won鈥檛 be that easy to me 馃檪
Might be worth looking into these Finsweet attributes. One might just be worth it. - But it also might not. I just know it鈥檚 relatively easy to implement. https://finsweet.com/attributes
Thanks Olivier B. - I was thinking about and I saw that Finsweet had something similar in their CMS library scripts - but that鈥檚 not supported anymore (although still might work): https://finsweet.com/cms-library/add-classes I was looking for something similar in Attributes but couldn鈥檛 find it (and I鈥檝e moved to another task in the meantime 馃檪 )
No problem!