To make animation
-To make a animation and pass the mishon of animation we need use this properties
A. When we make animation all tings are make by string,So when we make string don't give any space
Let circle = svg.append('circle')
Let circle = svg.append('circle ')
B.this us only to pass mishons.When you write a number use only num and don't use str
Examplelet circle = svg.attach(r, 1)
Correct ✔️let circle = svg.attach(r, 1)
Incorrect❌Codes of animation
.Append(_):- To give a shep of our animation elements
Eg.....=svg.append(circle)
note:- we can set circle ,rectangular and threeangl shapes
.attr(_,_):- To edit and costume things The first arey is use to give costum type .we sit the this codes
-'fill'(to sit a color)
Eg. Svg.attr('fill',yellow)
-'r'(to sit radius)
Eg.svg.attr(r,10)
'Width'and 'height'(to give height and width)
Eg.svg.attr.('height',10).attr('width',10)
-'cy'and'cx'(to sit pothishon)
Eg.svg.attr('cy',10).attr('cx',10)
E.t.c
.on(_,_):-to work click
Eg...=svg.on(click,.....)
-all so ther ar more attached like .transmissio().remove()e.t.c