src/models/wow-config.ts
Configuration for the NgwWowService service.
Properties |
|
Optional animateClass |
animateClass:
|
Type : string
|
Default value : 'animated'
|
Defined in src/models/wow-config.ts:14
|
Class name that triggers the CSS animations ('animated' by default for the animate.css library) |
Optional boxClass |
boxClass:
|
Type : string
|
Default value : 'wow'
|
Defined in src/models/wow-config.ts:9
|
Class name that reveals the hidden box when user scrolls. |
Optional callback |
callback:
|
Type : function
|
Defined in src/models/wow-config.ts:35
|
Callback called when the given box element is shown. |
Optional live |
live:
|
Default value : true
|
Defined in src/models/wow-config.ts:30
|
Consatantly check for new WOW elements on the page. |
Optional mobile |
mobile:
|
Default value : true
|
Defined in src/models/wow-config.ts:25
|
Turn on/off WOW.js on mobile devices. |
Optional offset |
offset:
|
Type : number
|
Default value : 0
|
Defined in src/models/wow-config.ts:20
|
Define the distance between the bottom of browser viewport and the top of hidden box. When the user scrolls and reach this distance the hidden box is revealed. |
Optional scrollContainer |
scrollContainer:
|
Type : HTMLElement
|
Defined in src/models/wow-config.ts:37
|
export class NgwWowConfig {
/**
* Class name that reveals the hidden box when user scrolls.
*/
boxClass?= 'wow';
/**
* Class name that triggers the CSS animations ('animated' by default for the animate.css library)
*/
animateClass?= 'animated';
/**
* Define the distance between the bottom of browser viewport and the top of hidden box.
* When the user scrolls and reach this distance the hidden box is revealed.
*/
offset?= 0;
/**
* Turn on/off WOW.js on mobile devices.
*/
mobile?= true;
/**
* Consatantly check for new WOW elements on the page.
*/
live?= true;
/**
* Callback called when the given box element is shown.
*/
callback?: (box: HTMLElement) => void;
scrollContainer?: HTMLElement;
}