Function
| Static Public Summary | ||
| public |
TiltEffect(options: Object): TiltEffectInstance tilt an element when it is pressed |
|
Static Public
public TiltEffect(options: Object): TiltEffectInstance source
import TiltEffect from 'tilt-effect'tilt an element when it is pressed
Params:
| Name | Type | Attribute | Description |
| options | Object | ||
| options.tiltElement | HTMLElement | the element that will be transformed |
|
| options.hitElement | HTMLElement | the element that listens to pointer events, by default it is the same as the tiltElement |
|
| options.draggable | boolean | ||
| options.tiltAmount | number | ||
| options.sinkAmount | number |
