PNLdev
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
En
English
فارسی
En
English
فارسی
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
Run
<!DOCTYPE html> <html> <head> <style> div { width: 50px; height: 50px; background: green; position: relative; animation: mymove 3s infinite; } @keyframes mymove { from {left: 50px;} to {left: 100px;} } </style> </head> <body> <h1>animation property example</h1> <p>Using the right and left pixels, you can specify the start and end of the movement, on the other hand, with the time command, determine the time the object must travel to reach the destination.</p> <div></div> </body> </html>