Skip to content

Instantly share code, notes, and snippets.

@paulohenriquesn
Created December 11, 2015 12:25
Show Gist options
  • Save paulohenriquesn/ca849c5a1f99279abd24 to your computer and use it in GitHub Desktop.
Save paulohenriquesn/ca849c5a1f99279abd24 to your computer and use it in GitHub Desktop.
Animate CSS/HTML [Text @Keyframe]
style <style type="text/css">
#acess {
color: white;
}
#acess {
width:100%;
overflow:hidden;
}
#acess p {
animation: slide-left 7s;
}
@keyframes slide-left {
from {
margin-left: 100%;
width: 300%;
}
to {
margin-left: 0%;
width: 100%;
}
}
#acess:hover {
cursor: pointer;
}
</style>
<div id="acess">
<p>Text.</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment