An Interest In:
Web News this Week
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
- March 25, 2024
November 22, 2016 04:36 pm GMT
Original Link: https://css-tricks.com/swapping-state-css-keyframes/
Swapping State with CSS Keyframes
Say you want an element to be in one state for 9 seconds, and in another state for 1 second, on a loop.
No tweening between the state, just a straight swap.
I was wondering how to go about this other day, and Sarah Drasner showed me that you can use reallllllly short distances between keyframes to move from one state to another. Like 59.999% to 60%. No opportunity to tween there on a normal animation duration like 10 seconds.…
Swapping State with CSS Keyframes is a post from CSS-Tricks
Original Link: https://css-tricks.com/swapping-state-css-keyframes/
Share this article:
Tweet
View Full Article