Skip navigation
scroll to type with CSS ✨
0:00 / 0:30

scroll to type with CSS ✨

jhey ʕ•ᴥ•ʔ

@jh3yy146K followers

Visit on X
1,131 likesDownloadOriginal post

118,095 views

scroll to type with CSS ✨ p { animation: type steps(124); animation-timeline: --main; background: var(--cursor) calc(var(--pos) * 1ch) 0 / 1ch 1lh no-repeat border-box, var(--txt) 0 0 / calc(var(--pos) * 1ch) 100% no-repeat text; } @​keyframes type { to { --pos: 124; }}

12 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    here's the @CodePen for this one! 🤙 wanted to tidy a little before postin' it happy to throw together the JavaScript version if you need, the concept is the same ✨

    35 likes

  • Anima's profile picture

    @AnimaApp

    📢It is live! @figma design to @MUI_hq or @AntDesignUI "Whether your design is well organized or a bit chaotic, using standard components or none, Anima takes it all and translates it into high-quality #MUI or #AntDesign code."-->

    1,037 likes

  • Ram Maurya's profile picture

    @mauryaratan

    Dang! I feel like I need a crash course on modern CSS

    12 likes

  • Stefan Roberts's profile picture

    @stefanroberts

    Honestly every time you post some absolutely mind-blowing CSS it makes me question everything

    4 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    thanks Stefan 🙏

  • Gustav Ekerot's profile picture

    @designgurra

    not sure how many times I can say this but: genius

    3 likes

  • Enterprise Software Architecture's profile picture

    @nxpatterns

    👀 Beautiful! Syntax highlighting for programming codes would be great.

    2 likes

  • wallkroft1212's profile picture

    @wallkroft1212

    Is it possible to get code? I tried to find it on your cdpn, but couldn't

    1 like

  • Adrien Duval🇨🇲's profile picture

    @Adrienxduval

    Can you do a codepen of this

    1 like

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    posted it underneath 🤙 gonna add some extra breakdown for it

  • Mehmet's profile picture

    @mehmet_ba7

    Does it work on ios chrome?

    1 like

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    Chrome doesn't really exist on iOS so not yet But can patch in a snippet of JS to make it work 🤙

    1 like