Class: AutoPlay

plugins.AutoPlay

new eg.Flicking.plugins.AutoPlay(options)

Plugin that allow you to automatically move to the next/previous panel, on a specific time basis

일정 시간마다, 자동으로 다음/이전 패널로 넘어가도록 할 수 있는 플러그인

  • options (default: DEFAULT_OPTION) optional
    Type: Partial<AutoPlayOptions>

    Options for the AutoPlay instance.

    AutoPlay 옵션

    • duration (default: DEFAULT_OPTION.direction) optional
      Type: AutoPlayOptions["direction"]

      Time to wait before moving on to the next panel.

      다음 패널로 움직이기까지 대기 시간

    • direction

      The direction in which the panel moves.

      패널이 움직이는 방향

    • stopOnHover

      Whether to stop when mouse hover upon the element.

      엘리먼트에 마우스를 올렸을 때 AutoPlay를 정지할지 여부

Example

flicking.addPlugins(new eg.Flicking.plugins.AutoPlay(2000, "NEXT"));

comments powered by Disqus