Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • shanehzn Friend
    #197137

    Hi there.

    I want to know how to make the Top button at the bottom of the site to scroll smoothly.

    Nazario A Friend
    #532844

    @shanehzn,

    By default, JA Teline IV has a TOP button at the footer. http://prntscr.com/3ehsau

    Please let me know how you want to achieve.

    shanehzn Friend
    #533467

    <em>@Nazario A 424221 wrote:</em><blockquote>@shanehzn,

    By default, JA Teline IV has a TOP button at the footer. http://prntscr.com/3ehsau

    Please let me know how you want to achieve.</blockquote>

    Hi there

    Thanks for your reply, i have the button but when I click it I want it to move to the top slowly instead of instantly moving right to the top.

    Nazario A Friend
    #533786

    @shanehzn,

    If you are using JA Teline IV T3 (the latest T3 Framework), you need to change the value of “duration” in the file: /templates/your_template_name/js/script.js as follows:


    $(document).ready(function ($) {
    // back to top
    (function(){
    $('#back-to-top').on('click', function(){
    $('html, body').stop(true).animate({
    scrollTop: 0
    }, {
    duration: 800,
    easing: 'easeInOutCubic',
    complete: window.reflow
    });

    return false;
    });
    })();
    });

    If you are using the JA Teline IV (T3v2 Framework), I am afraid such modification is not possible.

    shanehzn Friend
    #535697

    I don’t see that file there, the only script.js is in pluginssystemjat3jat3base-themesdefaultlayoutinfo and the code isn’t anywhere in there.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  shanehzn 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum