Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css animation sin

div{
  position:absolute;
  left:0;
  width:10%;
  animation: translate 15s infinite linear;
}
img {
  position:absolute;
  animation: upDown 1.5s alternate infinite ease-in-out;
  width:100%;
}

@keyframes upDown {
  to { transform: translatey(100px);}
}
@keyframes translate {
  to { transform: translatex(900%);}
}


/*
<div>
  <img src="http://i.imgur.com/QdWJXta.png">
</div>
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #animation #sin
ADD COMMENT
Topic
Name
2+9 =