An Interest In:
Web News this Week
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
- March 25, 2024
- March 24, 2024
April 5, 2020 12:53 pm GMT
Original Link: https://tympanus.net/codrops/2020/03/31/css-only-marquee-effect/
CSS-Only Marquee Effect
You make sure the text is more than twice the width of the screen, then use negative translate
animations to do the marquee movement.
You’ll probably want to aria-hidden
all but one of them if you need to duplicate the text. Or, you could use a very clever CSS trick to “duplicate” the text using text-shadow
.
Nice to see prefers-reduced-motion
in there stopping the effect when it should be.
Direct Link to Article — Permalink… Read article “CSS-Only Marquee Effect”
The post CSS-Only Marquee Effect appeared first on CSS-Tricks.
Original Link: https://tympanus.net/codrops/2020/03/31/css-only-marquee-effect/
Share this article:
Tweet
View Full Article