I'm trying to create an animation that is triggered when a button is pressed but it doesn't work. What's wrong with my code?
3/3/2020 8:47:23 AM
theres a better way of doing this is by using css transition,
here;s more simpler way of doing this. feel free to studying it
Thank you! It seems to work but it still says that there's an unexpected end of input on line 11. Is there a way to fix that?
you have <script> tag in there, remove it
I'm actually using your fixed version. It says that there's something wrong on line 11.
Interesting. The error comes only when I press the button. It works without errors when I click any random spot of the page.
oooh i see, i didnt really paid attention to the structure. i've edited the code again
Shouldn't it work only when the button is pressed?
Perfect, thank you very much! Now I have to study what I did wrong. 😀
yes your original code put click listener on the window. thats why i remove it. there's also a mistake in <button onclick
Awesome, thank you very much! 😀
Line 6 'our block element'
Learn Playing. Play Learning
Send us a message