HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> img{ width: 100px; height: 100px; position: absolute; bottom:0%; animation: myAnimation 5s infinite; -webkit-animation: myAnimation 5s infinite; /* Safari 4.0 - 8.0 */ } @keyframes myAnimation { 50% {bottom: 100%;} } /* Safari 4.0 - 8.0 */ @-webkit-keyframes myAnimation { 50% {bottom: 100%;} } </style> </head> <body> <h1>CSS Animatable bottom</h1> <img src="rocket.png"> </body> </html>
OUTPUT
×

Save as Private