SVG Animation
How vector animation works: stroke-dasharray drawing, path morphing, masks and gradients, replayed frame by frame with Path2D; hover to read path values.
Tech: Path2D, stroke-dashoffset, path morph, Canvas 2D
- Path Stroke Drawing — Use get TotalLength to achieve handwritten edges.
- Shape Morph — Symmetric Path Point interpolation, smooth transformation.
- Animated Icons — Menu / Close, Play / Pause, Load, icon action.
- Stroke Paths — SVG stroke-dash.
- Icon Motion — SVG icon status switch.
- SMIL / CSS Animation — SVG declaration animation.
- Flowing Dashes — Stroke-dashoffset loop.
- Text Stroke — SVG text path aside.
- Progress Ring — SVG circle progress.
- SVG Filters — FeGassian interferer, etc.
- Masks — SVG mask/clipPath。
- Path Following — The object moves along path.
- SVG Blob — path plugin organic.
- Chart Draw-in — The contours are essentially a <polyline> / <Path>, the area map is filled by supplementing the closed area below the fold.
- Icon Sprites — SVG sprite / use。
- Animated Gradient — linear / Radio Gradient Animation.
- Growing Lines — Each line is a double Bézier curve <Path d= "M Center Q Control Point End".
- Checkmark Morph — Checkbox from Empty Box to Solid Circle + Round: Round radius rx bigger, Fill from transparency to colour, It's all right
- SVG Loader Arc — A <circle> only draws an arc (dasharay = arc long + remaining perimeter) with animateTr
- Menu Morph — The Hamburg menu is three <line>.