Utilities
A few odds and ends are exported under the Utils
object.
Utils.eulerToCssTransform()
and Utils.quaternionToCssTransform()
convert a rotation object or tuple to a CSS transform string.
The <RotationEuler>
and <RotationQuaternion>
examples demonstrate these functions in action.
The Utils.cubicBezierToEaseFunction()
creates easing functions from cubic bezier values that are ready for use with Svelteโs tween stores and related animation systems.
The <CubicBezier>
example demonstrates this function in action.