Created
February 27, 2018 12:36
-
-
Save 1024zhangli/a139e39c52a012f6dba10e81de892ddd to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/velibem
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
@keyframes fadeOut { | |
from { | |
opacity: 1; | |
} | |
to { | |
opacity: 0; | |
} | |
} | |
h1 { | |
animation: fadeOut 2s ease; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Fading out animation</h1> | |
</div> | |
<script id="jsbin-source-css" type="text/css">@keyframes fadeOut { | |
from { | |
opacity: 1; | |
} | |
to { | |
opacity: 0; | |
} | |
} | |
h1 { | |
animation: fadeOut 2s ease | |
}</script> | |
</body> | |
</html> |
This file contains hidden or 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
@keyframes fadeOut { | |
from { | |
opacity: 1; | |
} | |
to { | |
opacity: 0; | |
} | |
} | |
h1 { | |
animation: fadeOut 2s ease; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment