How to create animations with certain conditions? For example, an animation that runs after clicking a button. Thanks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create animations with certain conditions? For example, an animation that runs after clicking a button. Thanks

31st Jul 2017, 10:43 AM
Muhammad Bintang Firdaus
Muhammad Bintang Firdaus - avatar
3 Answers
+ 4
use on <input> tag onclick="functionInJs()" and the Js is functionInJS(){ document.write("hh"); } and when it clicked it will write hh
31st Jul 2017, 12:46 PM
Art456
Art456 - avatar
+ 1
If your button id is "x", go to your CSS and write #x:hover {}. There you can do all your things.
31st Jul 2017, 3:06 PM
clement
clement - avatar
0
thanks, but I want to make shape transition, maybe in CSS, when click some button...
31st Jul 2017, 12:50 PM
Muhammad Bintang Firdaus
Muhammad Bintang Firdaus - avatar