Created
October 29, 2012 07:20
-
-
Save bhargav2785/3972100 to your computer and use it in GitHub Desktop.
transform: translate effect to mimic 'inccorect input or access denied'
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
/** | |
* transform: translate effect to mimic 'inccorect input or access denied' | |
**/ | |
.demo{ | |
position: relative; | |
margin: 50px 100px; | |
width:400px; | |
height: 100px; | |
background-color: steelblue; | |
display: block; | |
-webkit-animation: myAnimation .10s ease-in-out 5 alternate; | |
} | |
@-webkit-keyframes myAnimation{ | |
from { transform: translate(0,0) } | |
to { transform: translate(100px,0) } | |
} |
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="demo"> | |
<input type='text' value='Username' /><br/> | |
<input type='text' value='Password' /><br/> | |
<input type='submit' value='submit' /> | |
</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