Video yükleniyor...
Video Yüklenemedi
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 görüntüleme • 2 yıl önce •via X (Twitter)
10 Yorum

jhey ▲🐻🎈2 yıl önce
Here's that @CodePen link 🫶 Should be good in all browsers 🤙 No CSS scroll animation support? Falls back to Intersection observer ✨

Arif Sardar2 yıl önce
Indeed I like the way you toggle the theme much more than the highlight.

jhey ▲🐻🎈2 yıl önce
@Code_With_Arif Teaser for the next demo/video coming up 🫶😎

Ryan2 yıl önce
Codepen link?

tsúbomi2 yıl önce
this makes reading easy for users.

Aryan2 yıl önce
This is some. crazy CSS love it

Madat Bayramov2 yıl önce
Really wish X to add possibility to have code snippet in the posts. Readability is a way too low in such posts

Andre Specht2 yıl önce
Are scroll-driven events available on the main browsers?

An Vo2 yıl önce
@HienHuuPham Amazing

ed2 yıl önce
Would love to see a codepen link on this. Any chance you can share, please?
