KTScrolltop
is a Metronic's custom plugin defined in [metronic]/theme/html/[demo]/src/js/components/base/scrolltop.js
.
This is Metronic 7 documentation!
Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel
foundation with a solid light and dark mode design system,
extensive utility classes and custom made in-house components.
View Metronic 8 documentation
To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/
Scrolltop
Overview
Initialization
First parameter is the id, class, or tag of the HTML element. The second parameter is for the options.
var _object = new KTScrolltop(_element, {
offset: 300,
speed: 600,
});
Options
var options = {
offset: 300,
speed: 600,
};
Field | Type | Description | ||
---|---|---|---|---|
offset |
number |
Bottom offset for the scroll top button icon
|
||
speed |
number |
Speed of scroll to the top page
|
API Methods
Method | Description |
---|---|
on(name, handler) |
Get subscrolltop mode |
one(name, handler) |
Set scrolltop content @returns {mscrolltop} |