Thursday 15 June 2017

Animation with html tag circle and rect and @keyframes css property by top4ways



What you need for this animation :-
●Basic knowledge of html and css.
●Text editor like Notepad, Better if you use any code editor.

List of html tags and css used
  1. circle
  2. style
  3. svg
  4. rect

Lets start coding for creating above animation :-
Step first: Create an svg elements and define its height and width.
Step second : create a rect tag with id or class and then create five circle tag with different id or class. As in below code: -

Step third: - After completing second step create a style tag and define cx , cy , fill and r of circle by selecting id or class name one by one for all circle.
Step fourth: - After completing third step define @keyframe for all circle and define value you want to chane with time.
After completing all the step the code looks like the below code: -

Step fifth: - Save this text file with html extension and run it on any html supported browsers.

No comments:

Post a Comment