Created
June 19, 2024 15:12
-
-
Save LeaVerou/5b2cace482e94309f4ee459e2bba1ef3 to your computer and use it in GitHub Desktop.
Test for discrete animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Test for discrete animations */ | |
@keyframes discrete { | |
from { --background: lime } | |
to { --background: green } | |
} | |
body { | |
background: var(--background, red); | |
animation: 2s discrete infinite linear; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"140","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment