Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

296 B
Raw Blame
import { createTimeline, waapi } from '../../../dist/modules/index.js';

const { animate } = waapi;

const red = animate('.red', { x: '15rem', autoplay: false });
const blue = animate('.blue', { x: '15rem', autoplay: false });

const tl = createTimeline({loop: 1})
.sync(red, 0)
.sync(blue, 500);