Perspective
A plugin to apply 3D perspective effect while panels are moving
See Also:
Constructor
constructor(options?: Partial<PerspectiveOptions>);
Constructs a new instance of the Perspective class
Parameters
options (Partial<PerspectiveOptions>) - Options for the Perspective instance
Examples
flicking.addPlugins(new Perspective({ selector: "p", scale: 1, rotate: 1, perspective: 1000 }));
Options
selector
Type: string
CSS selector for the element to apply the perspective effect. If empty, the panel element itself is used
Default: ""
Properties
Methods
init
init(flicking: Flicking): void
Initialize the plugin and apply the perspective effect to the Flicking instance.
Parameters:
flicking(Flicking) - The Flicking instance to attach this plugin to