Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Last active July 4, 2018 01:53
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/efb891a971d4255e4a21bad677e4780c to your computer and use it in GitHub Desktop.
Save LeaVerou/efb891a971d4255e4a21bad677e4780c to your computer and use it in GitHub Desktop.
cross-fade() interpolation
/**
* cross-fade() interpolation
* Compare behavior of mousing out before the transition finishes with mousing out after letting the transition finish.
*/
body {
background: url(https://placekitten.com/200/200);
height: 99vh;
transition: 2s;
}
body:hover {
background: url(https://placekitten.com/300/200);
}
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment