To make animation

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')

Correct ✔️

Let circle = svg.append('circle ')

Incorrect❌

B.this us only to pass mishons.When you write a number use only num and don't use str

Example

let 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

1 Like

Thanks for the explanation, it’s that sometimes I got confused with that and with your explanation I won’t make the same mistakes.
:+1: