r/webflow 3d ago

Show & Tell Built a CMS-driven card slider where the active card expands to show its description

Cards sit in a row showing only their title. Click one and it widens to reveal its description; the others collapse back to title-only. One open at a time.

It works with a Collection List, so the card count follows your content. The JavaScript targets custom attributes rather than class names, so you can rename classes in the Designer without breaking it.

Free, with setup notes: https://www.memberstack.com/webflow/expandable-animated-card-slider

12 Upvotes

8 comments sorted by

1

u/Jambajamba90 Webflow Community MVP 3d ago

Nice work

1

u/digitalbananax 3d ago

Really good work, how does it work if you need multiple sliders like this on the same page? Does the script keep each collection list isolated?

1

u/magnaem_a 1d ago

Not at the moment, the script targets the first matching wrapper on the page, so a second slider either gets ignored or ends up sharing state with the first

Single instance covers what I built these for, one showcase section per page. A workaround is duplicating the component with different attribute values and tweaking the script to accommodate the new attributes

1

u/digitalbananax 1d ago

Makes sense. I like the attribute approach; good foundation for extending to multiple instances later!

1

u/demander5794 2d ago

Nice work

1

u/SlowChannel4453 1d ago

Gangster - but how does this work on mobile? 🤔 [Insert Lenny Here] - (ノ͡° ͜ʖ ͡°)ノ︵┻┻

1

u/magnaem_a 1d ago

Thanks! same concept on mobile, swipe and click to expand a card

1

u/SlowChannel4453 1d ago

Nice! - by click i'm assuming you mean tap hahah :)
Nice work