Skip to content

Instantly share code, notes, and snippets.

@bhargav2785
Created October 30, 2012 04:03
Show Gist options
  • Save bhargav2785/3978222 to your computer and use it in GitHub Desktop.
Save bhargav2785/3978222 to your computer and use it in GitHub Desktop.
Transition CSS property to get bullet fire effect :P
/**
* 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%;
}
<div class="transition">Hover on me</div>
{"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