ITranslateScaleProps
interface
Animation & Transition
Extends ITransitionProps with a target reference used by the translate-scale transition. The target anchors the transform-origin so the element scales from the activator position rather than its own center.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
Inheritance
Extends
Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- targetHTMLElement | [x: number, y: number]
- DOM element or pixel coordinates that anchor the translate+scale transform origin. When provided the element animates from/to that point.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Scale from a known pixel point