UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

18 lines (15 loc) 315 B
import { clamp } from '../../../utils/clamp.mjs'; const number = { test: (v) => typeof v === "number", parse: parseFloat, transform: (v) => v, }; const alpha = { ...number, transform: (v) => clamp(0, 1, v), }; const scale = { ...number, default: 1, }; export { alpha, number, scale };