Рет қаралды 751
Where we often reach for external libraries which add bulk and lack of understanding to our projects, we can write very little javascript to achieve filtering of our CMS / Collection List items in Webflow.
We even throw in a cheeky bit of GSAP here for you! gsap.com
Code: pastebin.pl/view/7e5dc6f9
Brought to you by FlowSt8.dev - The unlimited Webflow Development Service
Get started with Webflow NOW! webflow.grsm.io/vju2g2zhpv53
-
Learn to become a Full Stack Agency: thefullstackagency.xyz/
Support my content: buymeacoffee.com/fakesamgregory
Join the community: / 1737357986903753004
Services I Love
Domain Names: namecheap.pxf.io/c/3510278/38...
Hosting: www.hostg.xyz/aff_c?offer_id=...
Online Storage ($200 credit): m.do.co/c/9beb563908a1
Online Storage ($100 credit): www.vultr.com/?ref=9381598-8H
-
X: x.com/@0x5am5
-
--------------------------
⏰ Timestamps
--------------------------
00:00 - Intro
00:37 - Setting up our dev environment (more on this soon!)
01:18 - Collection overview
02:34 - Finishing setting up collection list, adding attributes
04:05 - Setting up the filtering links
06:03 - Finalising with data attributes
07:06 - Finding the elements in JavaScript
09:05 - Binding clicks to filter links
11:34 - showing/hiding correct items
14:00 - Adding GSAP
16:20 - Styling clicked filter link
My Gear (affiliate)
Sony A7 III: amzn.to/427iMbS
Sony 16-35mm: amzn.to/3Ehfvxi
VIJIM Video Light: amzn.to/3N0XdFp
Hollyland Mark M1: amzn.to/3MIZmUW
Macbook Pro M1 Pro: amzn.to/3oEVbS0
iPad Pro 2018: amzn.to/3AxJWNN
Magic Keyboard: amzn.to/421B26P
Travel Laptop Stand: amzn.to/3MDRx2Q
Logitech MX Vertical: amzn.to/3oCg1Bz
My Books
The Full Stack Agency: thefullstackagency.xyz/books/...
Lingo: Agile: thefullstackagency.gumroad.co...
Lingo: Startup: thefullstackagency.gumroad.co...
#GSAP #Webflow #JavaScript