Created
April 27, 2010 06:17
-
-
Save ericflo/380399 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>ASDF</title> | |
<style> | |
.animate { | |
-webkit-transition-property: -webkit-transform; | |
-webkit-transition-duration: 2s; | |
-webkit-transform: matrix3d(0.5, -0.5, -0.707107, 0, 0.853553, 0.146447, 0.5, 0, -0.146447, -0.853553, 0.5, 0, 0, 0, 0, 1); | |
-webkit-transition-timing-function: cubic-bezier(0.5, 0.2, 0.3, 1.0); | |
} | |
</style> | |
<script> | |
window.addEventListener('click', function(e){ | |
document.getElementById('test').className = 'animate'; | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="test"><p>This is a test</p></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment