+ 6
How To Use css @keyframes In Js
6 Respostas
+ 6
// jQuery is easy to coding.
+ 5
// You can use jQuery to create the animation
HTML :
<div class="block>Hello world</div>
JS :
$( ".block" ).animate({
fontSize : "20px"
fontWeight : "600"
padding : "24px"
}, 1500 );
+ 5
// Zohir Without jQuery
+ 5
// Sorry, i don't know 😔☺😉
+ 5
This code demonstrates how does pure js controls css @keyframes animation.
https://code.sololearn.com/WAB78dfvkzD9/?ref=app
Javascript is easy to code if you know it well.
+ 3
// Zohir I don't want to attach external file