[top], [scroll_to]
The scroll_to shortcode displays a link that allows scrolling to a location in a page with animation. The top shortcode works the same way, the only difference is the link text is 'Top' by default.
Attributes: | |
---|---|
to | The identifier of the HTML element to scroll to. The default is 'top' that means scroll to the top of the page. |
anim | Specifies whether scrolling animation is required or not (true | false). Default is true. |
duration | The duration of the scrolling animation, in milliseconds |
easing |
Specifies the easing function for the scrolling animation.
Easing functions (timing functions) specify how the intermediate values are calculated during the animation. It allows for a transition to change speed over its duration.
Supported functions:
|
stoponwheel | Specifies whether the scroll animation should stop when the mouse wheel rolls (true | false). Default is true. |
vertoffset | Specifies the vertical distance between the top of the element identified by the to attribute (see above) and the location where the scrolling ends, in pixels. Default is 0. |