Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created February 1, 2018 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeaVerou/8dba171aed0884e50f32035dbbee00d2 to your computer and use it in GitHub Desktop.
Save LeaVerou/8dba171aed0884e50f32035dbbee00d2 to your computer and use it in GitHub Desktop.
Non-interpolatable properties in animation
/**
* Non-interpolatable properties in animation
*/
@keyframes foo {
from { --foo: yellow }
to { --foo: green }
}
body {
background: var(--foo);
animation: foo 1s infinite;
}
<div><span></span></div>
// alert('Hello world!');
{"view":"split","fontsize":"110","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment