UNPKG

motion

Version:

The Motion library for the web

14 lines (11 loc) 325 B
import { createAnimatedComponent } from './animated.es.js'; const components = new Map(); const animated = new Proxy({}, { get: (_, key) => { if (!components.has(key)) { components.set(key, createAnimatedComponent(key)); } return components.get(key); }, }); export { animated };