Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | export type TiltProps = {
/**
* Enables/disables the tilt effect.
*/
tiltEnable?: boolean;
/**
* Reverses the tilt direction.
*/
tiltReverse?: boolean;
/**
* Initial tilt angle (in degrees) on the x-axis.
*/
tiltAngleXInitial?: number;
/**
* Initial tilt angle (in degrees) on the y-axis.
*/
tiltAngleYInitial?: number;
/**
* Maximum tilt rotation (in degrees) on the x-axis (range: `0°-90°`).
*/
tiltMaxAngleX?: number;
/**
* Maximum tilt rotation (in degrees) on the y-axis (range: `0°-90°`).
*/
tiltMaxAngleY?: number;
/**
* Enables tilt on a single axis only.
*/
tiltAxis?: Axis;
/**
* Manual tilt rotation (in degrees) on the x-axis.
*/
tiltAngleXManual?: number | null;
/**
* Manual tilt rotation (in degrees) on the y-axis.
*/
tiltAngleYManual?: number | null;
};
export type Axis = 'x' | 'y';
|