UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

7 lines (5 loc) 164 B
/** * Convert camelCase to dash-case properties. */ const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(); export { camelToDash };