Simple SVG animation and svg Animation

Source: Internet
Author: User

Simple SVG animation and svg Animation

I. First, let's look at the effect.


Ii. svg implementation



Iii. Code Description
(1) AnimateTransformAn element is the object for which we want to make an animation (that is Rect), It will execute all the effort


(2) because the center of the square overlaps with the origin of the area (the coordinate is (400,400), the square will rotate around its center 360 degrees

From = "0" to = "360" indicates the rotation angle. Dur = "5 s" indicates the rotation time.


(3) <line x1 = "-400" y1 = "0" x2 = "400" y2 = "0" style = "stroke: black;"/> X axis

<Line x1 = "0" y1 = "-400" x2 = "0" y2 = "400" style = "stroke: black;"/> Y axis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.