TEMPLATE FEATURES

 

 

Smooth Scroll

Enhance your site with a nice effect that slows down the scrolling when jumping to another part of your page.

Usage

To gradually descrease the speed when you jump from one section of your page to another, for example with a to-top scroller, just add the data-uk-smooth-scroll attribute to an <a> element, that links to the ID of the section you want to target.

Example

In our example we are using the heading Smooth scroll as target.

Go Up! Go Down!

Markup

<a href="#my-id" class="uk-button" data-uk-smooth-scroll>...</a>

Offset

The offset-option adds a specified distance to the target when calculating the scroll position. The offset is passed via the data-attribute. The value can be positive to stop scrolling before the target or negative to stop scrolling after the target.

Data attributeDescription
data-uk-smooth-scroll="{offset: 90}" Adds an offset, that stops scrolling 90px before the target.
data-uk-smooth-scroll="{offset: -90}" Adds an offset, that stops scrolling 90px after the target.

Example

This link scrolls the site to the headline "Smooth scroll" with an offset of 90px.

This link scrolls the site to the headline "Smooth scroll" with an offset of -90px.

Markup

<a href="#my-id" data-uk-smooth-scroll="{offset: 90}">...</a>

<a href="#my-id" data-uk-smooth-scroll="{offset: -90}">...</a>

About Us

Curabitur sollicitudin neque ante, commodo efficitur libero semper et. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam at suscipit mi. Maecenas et elit sem. Suspendisse a laoreet sem. Integer facilisis, magna at volutpat volutpat

Business Hours

Our support Hotline is available 24 Hours a day: (+61) 023 456 7805

Monday-Friday: 9am to 5pm
Saturday: 10am to 2pm
Sunday: Closed from 10am
Public Holidays: Closed all day

client1.jpgclient2.jpgclient3.jpgclient4.jpgclient5.jpgclient6.jpgclient7.jpgclient8.jpgclient9.jpg