1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| .animated { animation-duration: 2s; animation-fill-mode: both; } .animated { animation-iteration-count: infinite; } .animated { animation-duration: 2s; }
.up{ animation-name:upAnimation; transform-origin: center bottom; cursor: pointer; }
@keyframes upAnimation{ 0%, 100%, 20%, 50%, 80% { transition-timing-function: cubic-bezier(0.215,.61,.355,1); transform: translate3d(0,0,0); } 40%, 43%{ transition-timing-function: cubic-bezier(0.755,0.50,0.855,0.060); transform: translate3d(0,-30px,0); } 70%{ transition-timing-function: cubic-bezier(0.755,0.050,0.855,0.060); transform: translate3d(0,-15px,0); } 90%{ transform: translate3d(0,-4px,0); } }
|