Crear boton para Activar keyframe en css con javascript sin jquery | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Crear boton para Activar keyframe en css con javascript sin jquery

Hola gente, no tengo mas que agregar que lo que dice el titulo,gracias por responder

19th Apr 2020, 5:22 AM
Federico Nicolas Aguirre
Federico Nicolas Aguirre - avatar
1 Answer
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> <style> /* Example css */ @keyframes effect{ 50%{ Opacity:0; } } </style> <script> function blink(){ let x =document.getElementById("eff") x.style.animation="effect 1s infinite" } </script> </head> <body> <button id="eff" onClick="blink()">Click Here</button> </body> </html>
1st May 2020, 2:54 PM
Kelvin Paul
Kelvin Paul - avatar