MCPcopy
hub / github.com/micku7zu/vanilla-tilt.js / TiltOptions

Interface TiltOptions

vanilla-tilt.d.ts:9–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 * Options which configures the tilting
8 */
9export interface TiltOptions {
10 /**
11 * Reverse the tilt direction
12 */
13 reverse?: boolean;
14 /**
15 * Max tilt rotation (degrees)
16 */
17 max?: number;
18
19 /**
20 * Starting X tilt rotation (degrees)
21 */
22 startX?: number;
23
24 /**
25 * Starting Y tilt rotation (degrees)
26 */
27 startY?: number;
28
29 /**
30 * Transform perspective, the lower the more extreme the tilt gets.
31 */
32 perspective?: number;
33 /**
34 * 2 = 200%, 1.5 = 150%, etc..
35 */
36 scale?: number;
37 /**
38 * Speed of the enter/exit transition
39 */
40 speed?: number;
41 /**
42 * Set a transition on enter/exit.
43 */
44 transition?: boolean;
45 /**
46 * What axis should be enabled. Can be "x" or "y".
47 */
48 axis?: null | "x" | "y";
49 /**
50 * If the tilt effect has to be reset on exit.
51 */
52 reset?: boolean;
53 /**
54 * Whether the exit reset will go to [0,0] (default) or [startX, startY].
55 */
56 "reset-to-start"?: boolean;
57 /**
58 * Easing on enter/exit.
59 */
60 easing?: string;
61 /**
62 * if it should have a "glare" effect
63 */
64 glare?: boolean;
65 /**
66 * the maximum "glare" opacity

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected