Animations
Create and edit SMIL animations
This category contains 20 showcases
Play all Animations showcases continuously
Animate DOM attributes and style properties of elements
Animate linear and radial gradients properties (x1, y1, x2, y2, cx, cy, fx, fy, r, offset, stop-color, stop-opacity), transform translate scale.
Animate a closed quadratic arc with three drawn states (c,c1,c2)
Animate a closed quadratic arc with three drawn states (c,c1,c2).
Use keyTimes to increase the pressure and slow down expansion and return to original state.
Use keyTimes to increase the pressure and slow down expansion and return to original state.
Animate the pattern properties and its content elements.
Three examples of pattern animation:
Three examples of pattern animation:
- Pattern x origin
- Scale the pattern
- Rotate the content elements
Animating the line color helps to highlight the shape.
Use the mirror effect by returning the line color to its initial value
Use the mirror effect by returning the line color to its initial value
The stroke-dasharray property controls the pattern of dashes and spaces used to form the shape of a path.
Its animation can simulate a flow on a path.
For this:
The values of the property are predefined thus by drawsvg with the calculated length of the path.
Its animation can simulate a flow on a path.
For this:
- the initial value of the property must be set with a zero-length dash followed by a space of the path length,
- and the destination value of the property with a dash of the path length followed by a zero-length space.
The values of the property are predefined thus by drawsvg with the calculated length of the path.
The stroke-dashoffset property specifies the distance into the repeated dash pattern (defined by stroke-dasharray) to start the stroke dashing at the beginning of the path.
The animation of this property allows in particular to give the illusion of the movement of a train on its track.
This showcase illustrates this kind of animation.
The animation of this property allows in particular to give the illusion of the movement of a train on its track.
This showcase illustrates this kind of animation.
Animating the stroke-width property allows the shape to be highlighted.
Use the mirror effect by increasing the thickness of the line and then returning it to its initial value
Use the mirror effect by increasing the thickness of the line and then returning it to its initial value
Animate an element with translate, rotate, scale, skew transformations
Animate attribute values with spline interpolation
Animate using keyTimes with multiple values to control the transition speed of each value
Animate a wave path with drawn states.
Each path structure must be the same.
Draw each wave curve state by copy and move each control point.
Move each curve to the same starting point.
Animate the wave path with each curve.
The following modifications on the curves are replicated on the animation by a constraint.
Each path structure must be the same.
Draw each wave curve state by copy and move each control point.
Move each curve to the same starting point.
Animate the wave path with each curve.
The following modifications on the curves are replicated on the animation by a constraint.
Describes the schedule of animations with their sequences.
Shows how to define the origin of a motion animation.
Define the motion origin point on the target.
Select the moving method (transform or animate).
Define the motion origin point on the target.
Select the moving method (transform or animate).
Shows how to define the motion path of a target using the three methods (refers, copy, describe).
The motion path can be defined with a geometric element of any type (rectangle, circle, ellipse. path).
Animations are updated by constraints when motion path changes.
Animations properties can be edited.
The motion path can be defined with a geometric element of any type (rectangle, circle, ellipse. path).
Animations are updated by constraints when motion path changes.
Animations properties can be edited.
When the motion target is transformed, the animation should be
applied to an enclosing group of the target.
applied to an enclosing group of the target.
Animate motion using keyTimes/keySplines to set speed along the path with spline interpolation to accelerate and decelerate.
A demonstration with ski jumping
A demonstration with ski jumping
Synchronize animations by events (begin, end, click, hyperlink, ..)
Using the set command to fix elements state during animations