+ 3
Little help with my code please!
I have created one object called 'smiley' and a shadow for it. I have tryed to animate those objects with JS jQuery but it not work properlly. My intention was to make 'smiley' bounce from the surface (shadow) and the shadow to stay on the same place and only to transform in width. But when I run the code both objects are moving down (the shadow should be fixed) and up(like bounce) and the shadow doesn't get wider. Please help me to solve this issue and tell me where is my mistake, because the animation of the objects with jQuery is realy cool thing but gets very annoying when you don't know how to do that. Thank You
6 Antworten
+ 5
Use the svg animate and animateMotion tags, not JS, JQuery or CSS
https://code.sololearn.com/WmYCeg0K4G2c/?ref=app
+ 5
in the CSS don't use position absolute 😐
+ 4
you make the shadow and the simely in one svg
+ 3
Use CSS animation only
https://code.sololearn.com/WUgEeJeBj621/?ref=app
+ 1
I have changed the position but it still not work properlly( the shadow is moving).
+ 1
Perfect solution Calvin. Your animation is perfect. Well done