Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isStatic?: boolean
): CSSProperties => {
const motionValueStyles: { [key: string]: any } = resolveCurrent(values)
const transformTemplate = values.getTransformTemplate()
if (transformTemplate) {
// If `transform` has been manually set as a string, pass that through the template
// otherwise pass it forward to Stylefire's style property builder
motionValueStyles.transform = styleProp.transform
? transformTemplate({}, styleProp.transform)
: transformTemplate
}
return {
...styleProp,
...buildStyleProperty(motionValueStyles, !isStatic),
}
}
() => ({
...styles,
...buildStyleProperty(resolveCurrent(values)),
}),
[]