সম্পাদনা
<!DOCTYPE html> <html> <head> <style> #box { width: 100px; height: 100px; background: orange; animation: move 3s infinite alternate; } @keyframes move { to { transform: translateX(200px); } } </style> </head> <body> <button onclick="execute()">ফলাফল</button><br> <div id="box"></div> <script> function execute() { box.style.background = "pink"; } </script> </body> </html>
পূর্বরূপ