Fade
A plugin to apply fade in/out effect while panels are moving
See Also:
Constructor
constructor(selector?: string, scale?: number);
Constructs a new instance of the Fade class
Parameters
selector (string) - CSS selector for the element to apply the fade effect. If empty, the panel element itself is used
scale (number) - Effect amplification scale
Examples
flicking.addPlugins(new Fade("p", 1));
Properties
selector
Type: string
CSS selector for the element to apply the fade effect. If empty, the panel element itself is used
This property is read-only.
Methods
init
init(flicking: Flicking): void
Initialize the plugin and apply the fade effect to the Flicking instance.
Parameters:
flicking(Flicking) - The Flicking instance to attach this plugin to