Skip navigation
CSS Scroll-driven knockout text using SVG filter 🥊
0:00 / 0:46

CSS Scroll-driven knockout text using SVG filter 🥊

jhey ʕ•ᴥ•ʔ

@jh3yy149K followers

Visit on X
2,265 likesDownloadOriginal post

100,402 views

CSS Scroll-driven knockout text using SVG filter 🥊 section { filter: url(#​knockout); } section h1 { animation: shrink; } @​keyframes shrink { 0% { scale: 36; }} Animate text scale on a video overlay ✅ Knock out text using SVG filter ✅ Drive with scroll ✅

9 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    Here's the @CodePen if you wanna play with it 🤙 If you want me to polyfill the scroll stuff with GSAP, lemme know and I'll update the demo 🚀

    57 likes

  • rawn's profile picture

    @reallyrawn

    clean ass effect but you got to clean up those tabs bro

    8 likes

  • Dave | Supabase Cult Leader's profile picture

    @activenode

    OMG you're the GOAT. i need this.

    2 likes

  • Stanchev Sergey {💪's profile picture

    @Stanchev14

    Hey @jh3yy , looking awesome, could you please drop a link to this page if you have it. TY

    2 likes

  • Niklas's profile picture

    @nklsdev

    Please, we need a codepen for this 🥹

    3 likes

  • //pentagear.gg's profile picture

    @Pentagear

    Let's say I have a procedural animation being rendered to a canvas element, rather than a video playing. Can I translate these concepts to work with that instead???

    2 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    For real 💯 You can put anything behind it. It's an element with a black background and white color. The SVG filter jus' takes out all the white pixels 🤙

    2 likes

  • kehinde.code's profile picture

    @thisKehinde

    How is the support on browsers looking like?

    1 like

  • Josué Goyret's profile picture

    @JGoyret

    No codepen link? 🥲💔 (Amazing effect btw)

    1 like