Created
October 30, 2012 04:03
-
-
Save bhargav2785/3978222 to your computer and use it in GitHub Desktop.
Transition CSS property to get bullet fire effect :P
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
/** | |
* Transition CSS property to get bullet fire effect :P | |
**/ | |
body{ | |
background-color: black; | |
} | |
.transition{ | |
position: relative; | |
top: 50px; | |
width: 100%; | |
height: 2px; | |
color: steelblue; | |
} | |
.transition:hover{ | |
background: -webkit-linear-gradient(left, transparent 20%, white 100%); | |
transition: background 1s linear; | |
background-size: 200% 100%; | |
} |
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
<div class="transition">Hover on me</div> |
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
{"view":"separate","fontsize":"60","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment