# Documentation v8.0.38

Preview Downloads Purchase

# Overview

Smooth Scrollis a lightweight script to animate scrolling to anchor links. For more info please visit the plugin's site.

# Usage

Smooth Scroll's Javascript files are bundled in the global scripts bundles and are globally included in all pages:

    <link href="assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css"/>
    <script src="assets/plugins/global/plugins.bundle.js"></script>

# Initialization

- Smooth Scroll's Javascript is globally initialized with our `KTApp`wrapper defined in `src/js/layout/app.js`.
- To include Smooth Scroll into your project, you need to include a HTML attribute `data-kt-scroll-toggle`within the `a`element with a `href`set with a hastag `#`. For more options available, such as `offset`parameters, please refer to the initialization definition in `src/js/layout/app.js`.
- For more information on Smooth Scroll's other options, please refer to the official plugin site.

# Basic

Click on the button below to scroll to the top without any offset.
Scroll to Top

    <a href="#top" class="btn btn-primary" data-kt-scroll-toggle>Scroll to Top</a>

    <div id="top">
        ...
    </div>

# Offset

Click on the button below to scroll to "Usage" with offset. Add the HTML attribute `data-kt-scroll-offset`with the offset value in `px`to the anchor element.
Scroll to Usage

    <a href="#usage" class="btn btn-primary" data-kt-scroll-toggle>Scroll to Usage</a>

    <div id="usage" data-kt-scroll-offset="85">
        ...
    </div>

# Responsive

Click on the button below to scroll to "Initialization" with a responsive offset. Add the HTML attribute `data-kt-scroll-offset`with the offset value in `px`to the anchor element. The responsive values follows the standard Bootstrap breakpoints where `default`represents the base size and moves up with `sm`, `md`, `lg`or `xl`.
Scroll to Initialization

    <a href="#initialization" class="btn btn-primary" data-kt-scroll-toggle>Scroll to Usage</a>

    <div id="initialization" data-kt-scroll-offset="{default: 75, lg: 85}">
        ...
    </div>

### Explore

### Metronic Licenses

License FAQs
Regular License
For single end product used by you or one client
$ 39
Extended License
For single SaaS app with paying users
$ 969
Custom License
Reach us for custom license offers.
Contact Us
Buy Now

### Metronic Demos

Demo 1
Demo 2
Demo 3
Demo 4
Demo 5
Demo 6
Demo 7
Demo 8
Demo 9
Demo 10
Demo 11
Demo 12
Demo 13
Demo 14
Demo 15
Demo 16
Demo 17
Demo 18
Demo 19
Demo 20
Demo 21
Demo 22
Coming soon
Coming soon

##### Learn & Get Inspired

## Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Documentation & Videos
From guides and video tutorials, to live demos and code examples to get started.
Plugins & Components
Check out our 300+ in-house components and customized 3rd-party plugins.
Layout Builder
Build your layout, preview it and export the HTML for server side integration.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New
Latest features and improvements added with our users feedback in mind.
Buy now