Skip to main content
VelinStyle v1.4.0
⌂ Home

Chart animation 1.2.2

Five keyframes and matching utility classes used by the new Sparkline, Counter, and Live dot Web Components. Use them directly to animate plain SVG/HTML — no chart library required. Deutsch: Chart-Animation

Maturity: Documented as stable in VelinStyle 1.2.0. Studio and the complete Utility Engine remain planned — shipping utilities are hand-authored under @layer utilities, not a full variant generator.

When to use

When not

Keyframes

NameWhat it animates
velin-stroke-drawSVG stroke draw-in via stroke-dashoffset
velin-sparkline-glowPulsing drop-shadow halo around a path
velin-value-bumpScale + colour pop for ticked values
velin-live-pulseConcentric box-shadow ring (live dot)
velin-count-fadeOpacity + translate-Y fade for counters

Utility classes

ClassEffect
.velin-chart-lineSVG path with auto stroke-draw using --velin-chart-len custom prop
.velin-chart-areaFade-in for area fill beneath a chart
.velin-chart-glowLoops velin-sparkline-glow on the host element
.velin-spark-tickOne-shot value bump for KPI updates
.velin-live-pulseLooping ring around a dot/badge
.velin-count-fadeSingle fade for new counter values

Custom properties

--velin-chart-lenPath length; set automatically by <velin-sparkline>
--velin-chart-glow-colorHalo colour; defaults to --velin-color-primary
--velin-chart-bump-colorTick flash colour
--velin-chart-area-fillArea fill paint
--velin-live-colorLive-pulse colour

Usage

<svg viewBox="0 0 320 96">
  <path class="velin-chart-line" style="--velin-chart-len: 320" d="M0,90 L80,55 L160,30 L240,18 L320,10"/>
</svg>

Reduced motion

All chart utility classes are disabled under prefers-reduced-motion: reduce: strokes display fully drawn, glows stop, and pulses freeze. No author code required.