Skip to content

Instantly share code, notes, and snippets.

@1024zhangli
Created February 27, 2018 12:36
Show Gist options
  • Save 1024zhangli/a139e39c52a012f6dba10e81de892ddd to your computer and use it in GitHub Desktop.
Save 1024zhangli/a139e39c52a012f6dba10e81de892ddd to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/velibem
<!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>
@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