UNPKG

motion

Version:

The Motion library for the web

17 lines (14 loc) 423 B
import { getOptions } from '../../dom/utils/options.es.js'; function updateTargetAndOptions(target, options, toApply) { if (!toApply) return; for (const key in toApply) { if (key === "options") continue; target[key] = toApply[key]; if (toApply.options) { options[key] = getOptions(toApply.options, key); } } } export { updateTargetAndOptions };