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

  • Home
  • SEARCH
  • 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 5937443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:32:33+00:00 2026-05-22T15:32:33+00:00

Basically I would like to have a DIV slide out and do a slight

  • 0

Basically I would like to have a DIV slide out and do a slight bounce where it goes past it’s final size and then returns. Not sure how to explain it so please see my attempt at a diagram below:

--------------------->  //Slides out
                 <----  //Then "bounces" back to it's final size

I have the first part down using the toggle animation:

$("#second").animate({ width: 'toggle' }, 85);

I thought I could get the bounce effect by doing:

$("#second").animate({ width: 'toggle' }, 85).animate({ width: 'toggle' }, 75);

But it disappears. After reading over the animate/toggle documentation I guess this makes sense, but I’m still not sure how to get the desired functionality. Any suggestions?

Bonus points if you can make it so the content of the sliding div is cut off rather than being pushed to the next line.

  • 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-22T15:32:33+00:00Added an answer on May 22, 2026 at 3:32 pm

    I was able to implement it this way:

    $("#second").animate({ width: 'toggle' }, 250).animate({ width: '-=10' },185);
    

    Seemed like the most straight forward way.

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

Sidebar

Related Questions

I would like to do the following. Basically have a stored procedure call another
I would like to use databinding when displaying data in a TextBox. I'm basically
Basically, I would like a brief explanation of how I can access a SQL
Basically, I would like to build a list comprehension over the cartesian product of
This is something that I think would be very useful. Basically, I'd like there
Basically I have a div at the very top of my site that I
I was wondering, how would you go about writing an application that basically houses
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse
Basically I have some code to check a specific directory to see if an
Basically I have different images for different months in the year, what I'm trying

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.