UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

14 lines (11 loc) 361 B
import { isCSSVariableName } from 'motion-dom'; const scaleCorrectors = {}; function addScaleCorrector(correctors) { for (const key in correctors) { scaleCorrectors[key] = correctors[key]; if (isCSSVariableName(key)) { scaleCorrectors[key].isCSSVariable = true; } } } export { addScaleCorrector, scaleCorrectors };