Constructor
new Sweetie()
Example
import { sweet } from 'paprika-tween';
const { sweetie, spice } = await sweet({
duration: 2000,
from: { width: 100 },
to: { width: 200 }
render: (props, interpolation) => { ... }
});
spice.pause();
spice.resume();
await sweetie({
to: { width: 0 }
});
spice.dispose();
Members
running :Boolean
Returns whether the instance is running or not.
Type:
-
Boolean
Methods
dispose()
Stops the animation, removes its interpolatable properties and its callback functions.