正在加载视频...

视频加载失败

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 次观看 • 1 年前 •via X (Twitter)

10 条评论

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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 的头像
Pedro Duarte1 年前

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

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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 的头像
Julián Pinzón Eslava1 年前

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 🌳 的头像
Unreal3v 🌳1 年前

src?

Nir Galon 的头像
Nir Galon1 年前

Nice! What is the browser support on this API?

Anthony Miller 的头像
Anthony Miller1 年前

Looks like this was added cause ChatGPT needed it.

hola 的头像
hola1 年前

finally something not related to AI

lear 的头像
lear1 年前

Love your codepen "template". Layer base is 🔥

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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

相关视频