Webflow Trick-Kiste

Animate SVG lines (when in viewport)

Code-Vorlage
Kostenlos
ressourcen
Free Cloneable
Live Vorschau
* AFFILIATE LINK
Details
Kategorie
Code-Vorlage
Autor
Jonas Arleth
Blog Post
With just two attributes, you can animate any SVG with line paths and adjust the timing.

Instructions

With just two attributes, you can animate any SVG with line paths and adjust the timing. Especially easy to integrate in Webflow via an Embed field. I explain how in the video.

The following JavaScript code is needed:





You need to apply the following 2 attributes to a DIV around the SVG:

svg=”animated”

svg-animation-time=”number in ms” (optional)