Created
March 12, 2016 05:14
-
-
Save gnilchee/b0f33b047c9976b8d573 to your computer and use it in GitHub Desktop.
Simple Transition Example with the prefixfree lib cdn
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> | |
<title>Circle Transition Animation</title> | |
<style> | |
.circle { | |
width: 200px; | |
height: 200px; | |
background-color: #4CAC9D; | |
border-radius: 50%; | |
} | |
body { | |
background-color: #fff; | |
padding: 50px; | |
} | |
@keyframes slide { | |
0% { | |
transform: translate3d(0px, 0px, 0px); | |
} | |
50% { | |
transform: translate3d(800px, 400px, 0px); | |
opacity: 0; | |
} | |
100% { | |
transform: translate3d(0px, 0px, 0px); | |
} | |
} | |
#sillyCircle { | |
animation: slide 2s infinite; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="sillyCircle" class="circle"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment