Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:49:09+00:00 2026-06-11T04:49:09+00:00

I am trying to smooth scroll down 180px using javascript/mootools. I have the following

  • 0

I am trying to smooth scroll down 180px using javascript/mootools.

I have the following js code:

document.documentElement.scrollTop = document.documentElement.scrollTop + 180;

But how can I for instance make this work over a course of 500ms so it animates the scroll rather than it jumping down (which it does at present).

Cheers,
Adi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:49:11+00:00Added an answer on June 11, 2026 at 4:49 am

    You can by using Fx.SmoothScroll

    var ss = new Fx.SmoothScroll({duration: 500 /* ms */}, window);
    
    $('scroll').addEvent('click', function(){ ss.start(0, 180 /* Y offset of the window */); });
    

    ​demo: http://jsfiddle.net/TmBkj/1/

    edit: remember to include the plugin (not by default on the core) or include the more bundle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a modular html document that employs smooth scrolling. If
I am trying to create a calendar using the Gallery widget. I have a
Trying to build a marquee control with smooth text animation. Current efforts include: Using
I'm trying to do smooth scroll between parts of my page. Basicly my aim
I have a problem I am trying to solve as smooth as possible, and
I'm trying to find a very simple and smooth, lightweight javascript or jquery marquee.
I have been trying out the spring-security-facebook plugin and so far its been smooth.
I'm trying to calculate smooth normals for a cone. In looking around for code
I am trying to use a very basic smooth scrolling feature with jQuery's scrollTop
I'm trying to scroll 2 listviews simultaneously using the setSelectionFromTop() method from the ListView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.