securityos/node_modules/framer-motion/dist/es/render/html/utils/render.mjs

10 lines
335 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
function renderHTML(element, { style, vars }, styleProp, projection) {
Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));
// Loop over any CSS variables and assign those.
for (const key in vars) {
element.style.setProperty(key, vars[key]);
}
}
export { renderHTML };