एनिमेशन चल रही है या रुकी हुई है, यह सेट करने के लिए animation-play-state प्रॉपर्टी का उपयोग करें।
animation-play-state प्रॉपर्टी लागू करने के लिए निम्न कोड चलाकर देखें:
उदाहरण
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 200px; position: relative; background: red; animation-name: myanim; animation-duration: 2s; animation-play-state: paused; } @keyframes myanim { from {left: 0px; background-color: green;} to {left: 100px; background-color: blue;} } </style> </head> <body> <div></div> </body> </html>