svg-animate__source

Generate animated SVG diagrams with TikZ

Version:
1.0
Copyright:
Sébastien Gross
License:
agpl3
Packaged on:
03/28/2026 11:09:30
Number of files:
4
Size on disk:
53.99 kB

This package provides step-by-step animations for TikZ diagrams in SVG format. The resulting animations run natively in web browsers and do not require JavaScript or plugins. From a single source file, both an animated SVG and a static PDF can be generated. In the PDF output, steps may be stacked or collapsed into a single frame. The animation model is based on discrete steps. A TikZ picture is enclosed in \begin{animate}, material to be shown at a given step is marked with \reveal{...}, and \animstep is used to advance to the next step. Additional features include per-step durations, visibility over multiple steps or step ranges, blinking elements, one-shot or looping playback, and a \noanimate fallback for PDF output. In SVG output, visibility changes are implemented by means of SMIL animations with instantaneous opacity transitions.