An object that specifies values to animate to. Each value may be set either as a single value, or an array of values.
It may also option contain these properties:
transition
transitionEnd
const target = { x: "0%", opacity: 0, transition: { duration: 1 }, transitionEnd: { display: "none" }} Copy
const target = { x: "0%", opacity: 0, transition: { duration: 1 }, transitionEnd: { display: "none" }}
Optional
Generated using TypeDoc
An object that specifies values to animate to. Each value may be set either as a single value, or an array of values.
It may also option contain these properties:
transition: Specifies transitions for all or individual values.transitionEnd: Specifies values to set when the animation finishes.