Loopkit

Schema-driven SVG animation engine. Under 5KB, zero dependencies. Works with React, SSR, and vanilla JS. Also on npm.

How To Use

npm versionLicense
$ npm install loopkit
import { createAnimation } from "loopkit";

createAnimation(container, schema);
npmGitHubDocs

How It Works

1

Install

npm install loopkit — zero dependencies, under 5KB minified.

2

Write a schema

A plain JS object: set width, height, background, then add elements (rect, circle, text, badge) with style and animate properties.

3

Render

Call createAnimation(container, schema). In React, use a ref in useEffect and call destroy() in the cleanup. For SSR, use renderToString(schema).

FAQ

Built & Maintained by Varstatt

Varstatt is a one-person product studio run by Jurij Tokarski, product engineer since 2011. These tools are free and open — no signup, no catch.