Skip to content

Instantly share code, notes, and snippets.

@ericflo
Created April 27, 2010 06:17
Show Gist options
  • Save ericflo/380399 to your computer and use it in GitHub Desktop.
Save ericflo/380399 to your computer and use it in GitHub Desktop.
<!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