Created
December 18, 2015 19:17
-
-
Save levinmejia/f731c305c04ea5543f93 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
<style> | |
.animate-blur { | |
-webkit-animation: blur-animated 2s forwards; | |
} | |
@-webkit-keyframes blur-animated { | |
0% { | |
-webkit-filter: blur(0); | |
} | |
100% { | |
-webkit-filter: blur(5px); | |
} | |
} | |
</style> | |
<script> | |
$('button').click(function() { | |
$('.original').toggleClass('animate-blur'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment