Loading video...

Video Failed to Load

Go Home

Using the CSS Custom Highlight API to create dynamic typing animations ✨ No need to update or change the DOM content 👀 The content is always there, you're jus' highlighting it to create the effect!

86,763 views • 1 year ago •via X (Twitter)

10 Comments

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

Here's the @CodePen for this one 🚀 Input anything and it'll randomly type it out 👇 Could easily turn it into a little component or something. Threw this one together quick with GSAP

Pedro Duarte's profile picture
Pedro Duarte1 year ago

so good man. wow the amount of times i wrote this in js in the last 15 years is insane

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

Ha 😅 This way there's more time to focus on adding random natural pauses. Put in a rudimentary solution where it randomly pauses on spaces and then changes the wpm 🤔

Julián Pinzón Eslava's profile picture
Julián Pinzón Eslava1 year ago

Your codepen setup to showcase stuff is SO good. I love the demos but the controls are what make them pop the most. Amazing stuff!

Unreal3v 🌳's profile picture
Unreal3v 🌳1 year ago

src?

Nir Galon's profile picture
Nir Galon1 year ago

Nice! What is the browser support on this API?

Anthony Miller's profile picture
Anthony Miller1 year ago

Looks like this was added cause ChatGPT needed it.

hola's profile picture
hola1 year ago

finally something not related to AI

lear's profile picture
lear1 year ago

Love your codepen "template". Layer base is 🔥

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

I should do a post/write up on it or my set up 🤔 Saves me a lot of time for real 💯

Related Videos