Skip to content

Instantly share code, notes, and snippets.

@jupegarnica
Forked from LeaVerou/dabblet.css
Created September 4, 2013 11:44
Show Gist options
  • Save jupegarnica/6435879 to your computer and use it in GitHub Desktop.
Save jupegarnica/6435879 to your computer and use it in GitHub Desktop.
Reversing animation on mouse-out
/**
* Reversing animation on mouse-out
* Issues: Animation will also play in the beginning
*/
@keyframes test {
from { background: white }
to { background: black }
}
html {
background: black;
animation: 2s test;
}
html:hover {
animation: 2s test reverse;
}
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
@sergionv
Copy link

exelente !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment