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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:48:09+00:00 2026-05-28T01:48:09+00:00

I am having problems with a jQuery slidedown and slideUp function. When clicking the

  • 0

I am having problems with a jQuery slidedown and slideUp function. When clicking the button the div slides down to reveal more content – however when it slides down it goes half way down smoothly then it likes stutters – but when i click less info to take the div back up it goes up in a smooth transition. How can i make sure it slides down smoothly without no interruptions in the transition?

<script type="text/javascript">
    $(document).ready(function () {
        // $(".image-gallery ul li:gt(5)").hide(0);
        $(".inner p:gt(2)").hide(0);

        $('a.moreInfoLink').toggle(
            function () {
                $('.inner p:gt(2)').slideDown(1000);
                $(this).text("Less info");
            },
            function () {
                $('.inner p:gt(2)').slideUp(1000);
                $(this).text("More info");
            }
        );
    });
</script>

HTML/.NET Coding

<div class="slideContent">
    <div class="inner">
        <energy:TextPod ID="TextPod1" runat="server" CssClass="client-portfolio-intro" />
    </div>
</div>
<div class="clear-me"></div>

<div class="btnMoreInfo">
    <a class="moreInfoLink" href="javascript:;">More Information</a>
</div>
  • 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-28T01:48:10+00:00Added an answer on May 28, 2026 at 1:48 am

    The problem is one of performance – browsers can get bogged down when trying to animate multiple elements at a time, particularly if those elements cause the document to be ‘reflowed‘. Essentially, your selector $('.inner p:gt(2)') is causing all the <p> elements to be animated independently, and each one causes a document reflow at every point.

    For a smooth transition, try animating a single containing element that wraps everything you want to be shown/hidden. I would use HTML something like:

    <div class="slideContent">
        <div class="inner">
            <p>Something</p>
            <p>Something</p>
            <div class="fullInfo">
                <p>Something</p>
                <p>Something</p>
                <p>Something</p>
            </div>
        </div>
    </div>
    
    <div class="btnMoreInfo">
        <a class="moreInfoLink">More Information</a>
    </div>
    

    And JS like:

    $(".inner .fullInfo").hide(0);
    
    $('a.moreInfoLink').toggle(
        function () {
            $('.inner .fullInfo').slideDown(1000);
            $(this).text("Less info");
        },
        function () {
            $('.inner .fullInfo').slideUp(1000);
            $(this).text("More info");
        }
    );
    

    This way, the browser is only animating one element at a time – much faster!

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

Sidebar

Related Questions

I'm having some problems with jQuery to filter some content from a portfolio layout.
I am having problems with Jquery parsing the JSON I am sending back... however,
I'm having problems using ajax with jQuery... I have the following jscript: $(document).ready(function() {
I'm having some problems with Jquery UI Dialog and TinyMCE. Passing data to a
I am having problems with the Jquery qtip plugin. It works fine in Firefox
Hi I'm having some problems with jquery checkbox selected. I want to do a
I've been having a lot of problems with jQuery 1.3.2 on only one of
I am using the jQuery UI components but having some problems. If I try
I am having a problem trying to use the prependTo() function in jQuery... for
I am having a problem regarding a jquery dropdownmenu. I have put a slidedown

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.