Hey! Iāve already created a ācard style stackingā interaction using images pulled from a CMS collection and sticky scrolling
Iāve been trying to scale & fade out the bottom card as the next card comes into view, however any interactions I create get applied to the whole collection, so I canāt seem to get this to work.
Any way to add a custom class on each collection item and then target that in the interactions panel?
Alternatively I was thinking I could target each item with the ānth childā selector, but unsure how Iād connect this to animations controlled in the interactions panel.
Any ideas or solutions would be amazing
Live stage site here: LINK
Public share link below
Iāve got the jQ successfully adding a numbered custom class to every collection item.
However the interactions I apply donāt seem to be mirrored on the collection items
Iām applying a while scrolling in view interaction on custom-1 which animates opacity and scale of custom-0 which works on the placeholders but not the collection items.
Hey @bensilvertown, adding this code Webflow.require('ix2').init() after the class has been added should work. Basically it tells webflow to find all elements again.
Sorry you might have to walk me through this bit.
Where would it go? In a script tag before end of the body tag? @dennyhartanto
Would there be a way of applying that same interaction pattern in a waterfall fashion without having to re-create the interaction for every card in the stack?
At the moment Iād need to create an interaction on custom-1 affecting custom-0, custom-2 affecting custom-1, custom-3 affecting custom-2 etc etc.
Which might get messy if more items in the collection get added.
Hey Denny - I am looking for help with something similar - I want to trigger visibility of individual records in a collection (all wrapped up in pretty div blocks, of course) [find this structure under Songs Canvas->Collection List Wrapper-> etcā¦] from a click on a div block containing unique, non-collection text [Find this under Song List Palatte->song title list line]. So I have all the div blocks laid out for the triggers, but thereās only one instance of the target collection "layoutā, so how do I target an item (well, record, really) within in the collection for display?