File

src/models/wow-config.ts

Description

Configuration for the NgwWowService service.

Index

Properties

Properties

Optional animateClass
animateClass: string
Type : string
Default value : 'animated'

Class name that triggers the CSS animations ('animated' by default for the animate.css library)

Optional boxClass
boxClass: string
Type : string
Default value : 'wow'

Class name that reveals the hidden box when user scrolls.

Optional callback
callback: function
Type : function

Callback called when the given box element is shown.

Optional live
live:
Default value : true

Consatantly check for new WOW elements on the page.

Optional mobile
mobile:
Default value : true

Turn on/off WOW.js on mobile devices.

Optional offset
offset: number
Type : number
Default value : 0

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: HTMLElement
Type : HTMLElement
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;
}

result-matching ""

    No results matching ""