Skip to contents

Use Scroller

Usage

use_scroller(
  animationLength = 750,
  easingFunction = "linear",
  scrollOffset = 0,
  use_cdn = TRUE
)

Arguments

animationLength

integrer. Lenght of the animation

easingFunction

string. An effect from jquery-easing.

scrollOffset

integrer. scrollOffset

use_cdn

use CDN (by default) or use locally stored files.

Examples


use_scroller()
#> <script>$(document).ready(function(){
#>                       AA_CONFIG = {animationLength: 750, easingFunction: 'linear', scrollOffset:0};
#>                     });</script>