How can i make this animation toggle? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
19th Dec 2019, 12:14 PM
Jeremy Cruz
Jeremy Cruz - avatar
9 Answers
+ 2
Can you explain what you mean by toggle? you mean it grows taller then shrinks? or is it something different? Testing `onmouseover` event handler on a phone is somewhat difficult though.
19th Dec 2019, 1:34 PM
Ipang
+ 2
Jeremy Cruz ,please always provide full description of your problem whenever asking question 😊 I have tried to explain through this code. Don't read only js part. consider reading html, css and js as well. I have used transition-duration property in css that will avoid rigid change made by js. Read completely : https://code.sololearn.com/W2AWWRQcA9b3/?ref=app
19th Dec 2019, 1:45 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Jeremy Cruz ,I know you'll not copy bro 😉. You have been learning since a long. evertime you asked me you tried to do it at first place. I appreciate you tried to do this on your own first. keep doing you'll be good programmer. 🤝
19th Dec 2019, 1:50 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Nvm, I now understand. I had to read the explaination a couple of times but i finally got it
19th Dec 2019, 1:59 PM
Jeremy Cruz
Jeremy Cruz - avatar
+ 1
When onmouseover it expands to 100% and shrinks to 50% when onmouseout
19th Dec 2019, 1:35 PM
Jeremy Cruz
Jeremy Cruz - avatar
+ 1
Thanks
19th Dec 2019, 1:46 PM
Jeremy Cruz
Jeremy Cruz - avatar
+ 1
And i wont just copy
19th Dec 2019, 1:46 PM
Jeremy Cruz
Jeremy Cruz - avatar
+ 1
Thanks. I appreciate your help
19th Dec 2019, 1:52 PM
Jeremy Cruz
Jeremy Cruz - avatar
+ 1
Im not understanding this change, "animation(this)" ==> "animation(mydiv)"
19th Dec 2019, 1:56 PM
Jeremy Cruz
Jeremy Cruz - avatar