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 6837931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:32:08+00:00 2026-05-26T23:32:08+00:00

I have a div with height 40px; I’d like to do a scrollDown with

  • 0

I have a div with height 40px; I’d like to do a scrollDown with jQuery from this height to 600px.

How can I do it?

  • 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-05-26T23:32:08+00:00Added an answer on May 26, 2026 at 11:32 pm

    You’re looking for animate rather than scrollDown (or slideDown, which I suspect is what you meant). E.g.:

    $("selector_for_the_div").animate({
        height: 600
    });
    

    Live example


    Update: In a comment on another answer you said:

    Uhm, I think I can’t use animate! Because I Need that every elements linked to this div (like some div with position absolute) scroll with #myDiv

    If you have elements aligned with the div in a way that they don’t get moved naturally when the div gets taller (e.g., you’ve used position: absolute or similar), you can animate their top (or bottom) property at the same time. I’d look at whether it was possible to relate them to the div in a different way, but if you can’t, that would be pretty much your only option. It looks something like this:

    jQuery(function($) {
      var theDiv = $("#theDiv"),
          absDiv = $("#absDiv"),
          coords = theDiv.offset(),
          origHeight = theDiv.height();
    
      absDiv.css({
        position: "absolute",
        left:     coords.left + "px",
        top:      (coords.top + origHeight) + "px"
      });
    
      $("#theButton").click(function() {
        var height = theDiv.height();
        if (height < 600) {
          theDiv.animate({
            height: 600
          });
          absDiv.animate({
            top: coords.top + 600
          });
        }
      });
    });
    

    Live example

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

Sidebar

Related Questions

I have a wrapper div with a height of 600px and a width of
I have a div with an overflow set to hide elements. <div style=overflow:hidden; height:40px>
I have a .net textbox (text area) inside a div like this: <div class=description-textarea>
I have a question regarding how to get a div height. I'm aware of
I have a div with a set height of 200, and sometimes there's enough
I have a Div that is 400px in height with the ID content, I
I have a div element with fixed height and width and overflow:hidden, and I
I have a link which animates some div 's height when its hovered, but
I have got a div [projItemsContent] that varies in height based on the contents,the
I have set a fix height of DIV and set its overflow-y:scroll but the

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.