Created
February 23, 2013 13:10
-
-
Save garrow/5019673 to your computer and use it in GitHub Desktop.
spoiler-alert, css only version.
Still doesn't work on firefox.
https://github.com/joshbuddy/spoiler-alert
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
spoiler, .spoiler { | |
-webkit-transition: all 125ms linear; | |
-moz-transition: all 125ms linear; | |
-o-transition: all 125ms linear; | |
transition: all 125ms linear; | |
filter: blur(10px); | |
-webkit-filter:blur(10px); | |
-moz-filter: blur(10px); | |
-o-filter: blur(10px); | |
-ms-filter: blur(10px); | |
} | |
spoiler:hover, .spoiler:hover { | |
filter: blur(5px); | |
-webkit-filter:blur(5px); | |
-moz-filter: blur(5px); | |
-o-filter: blur(5px); | |
-ms-filter: blur(5px); | |
} | |
spoiler:active, .spoiler:active { | |
filter: blur(0px); | |
-webkit-filter:blur(0px); | |
-moz-filter: blur(0px); | |
-o-filter: blur(0px); | |
-ms-filter: blur(0px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment