Skip to content

Instantly share code, notes, and snippets.

@bhargav2785
Created October 29, 2012 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhargav2785/3972100 to your computer and use it in GitHub Desktop.
Save bhargav2785/3972100 to your computer and use it in GitHub Desktop.
transform: translate effect to mimic 'inccorect input or access denied'
/**
* 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) }
}
<div class="demo">
<input type='text' value='Username' /><br/>
<input type='text' value='Password' /><br/>
<input type='submit' value='submit' />
</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