Загрузка видео...
Не удалось загрузить видео
CSS Trick 📜 You can trigger text highlights on scroll with scroll-driven animations 😎 mark { animation: highlight; animation-timeline: view(); } @keyframes highlight { to { --lit: 1; }} mark span { background-position: calc(var(--lit) * -110%) 0; transition: background 1s; } The trick is using a scroll-driven animation to... show more
208,112 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 10

jhey ▲🐻🎈2 лет назад
Here's that @CodePen link 🫶 Should be good in all browsers 🤙 No CSS scroll animation support? Falls back to Intersection observer ✨

Arif Sardar2 лет назад
Indeed I like the way you toggle the theme much more than the highlight.

jhey ▲🐻🎈2 лет назад
@Code_With_Arif Teaser for the next demo/video coming up 🫶😎

Ryan2 лет назад
Codepen link?

tsúbomi2 лет назад
this makes reading easy for users.

Aryan2 лет назад
This is some. crazy CSS love it

Madat Bayramov2 лет назад
Really wish X to add possibility to have code snippet in the posts. Readability is a way too low in such posts

Andre Specht2 лет назад
Are scroll-driven events available on the main browsers?

An Vo2 лет назад
@HienHuuPham Amazing

ed2 лет назад
Would love to see a codepen link on this. Any chance you can share, please?
