Last active
July 4, 2018 01:53
-
-
Save LeaVerou/efb891a971d4255e4a21bad677e4780c to your computer and use it in GitHub Desktop.
cross-fade() interpolation
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
/** | |
* 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); | |
} |
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":"100","seethrough":"","prefixfree":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment