+ 6
How can we wave any object in HTML ???
14 Answers
+ 3
The question ask for "any object in HTML", so the answer marked as best is wrong: <animation> tag is not for HTML but for SVG elements/objects only ^^
Even if you can embed svg code inside html, you cannot use <animate> with "any" HTML element, but you need to use CSS and/or Javascript to animate "any object in HTML", including SVG... (JS can access HTML as well as SVG through DOM -- Document Object Model, the browsers internal data structure/representation of a web document -- and CSS is used in addition to both HTML and SVG differents languages specifications -- with shared AND specific properties names/features in each cases)
But I don't know why I talk to you @Arushi Singhania, as I was wasting my time the last time I tried to help you on this more recent question from you:
https://www.sololearn.com/Discuss/1067096/why-this-code-is-not-working
... no answer, while I take time to give you advices to be able to correct your css and improve your code debugging skills, after spending many hours to understand and correct an absolutly not working code of yours (no output at all, no explanation about expected output, totally messy Css part).
Anyway, others sololearners doesn't have to be confused by the best answer mark here, and you should remove the green tick on it!
+ 4
<animate attributeName="x" from="0" to="300"
dur="3s" fill="freeze" repeatCount="2"/>
+ 3
Yes
+ 3
Thanks
+ 3
You too helped me a lot. Thanks for that.
+ 3
Anything you want ask me and I will help you. Anything you want😄☺️☺️☺️
+ 2
I think you mean to animate it write??????
+ 2
X=the name
+ 2
From="0" to="300" the path that will do
+ 2
Dur="3" the time
+ 2
RepeatCount="2" how many times
+ 2
Ok and Thanks
+ 1
Can you give me an upvote for my best answer that will help me a lot. Thanks
+ 1
Thanks you a lot my friend you helped me a lot thanks👍👍👍👍👍👍👍👍👍👍👍👍👍👍