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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:06:08+00:00 2026-06-06T13:06:08+00:00

I am trying to make a div slide to a FIXED position on the

  • 0

I am trying to make a div slide to a FIXED position on the bottom of my screen temporarily, when I click on a button. I want it to slide back to where it was on the button release, but I can’t quite get it to work. My code is the following

$("#chatContainer").css("position", "fixed");
$("#chatContainer").animate({ top: '60%' }, 'slow');  

Because the position is fixed temporarily, the Div pops up from the middle of the screen and then slides down. I would like it to slide from the bottom and stick there until release of the click.

  • 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-06T13:06:11+00:00Added an answer on June 6, 2026 at 1:06 pm

    Here’s the way I would try it (off the top of my head):

    1. Get the window x/y coordinates of the container in question.
    2. $.clone it, then set the x/y coordinates of the clone to the same as the original (that way it appears to be moving FROM the original location).
    3. Perform necessary animation (hide original > animate clone to new location > re-show original in new position > fade out / delete clone)

    You might need to make some tweaks to avoid unnecessary binding etc. on the clone, since the clone is “just for show”.

    I’m not sure this is the “best” way technically, but it is the approach I would try to take to get the desired user experience.

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

Sidebar

Related Questions

Hihi, I am trying to create a slide down menu using DIV, but hit
Hello all im trying to make this slide effect http://tinyurl.com/628z32d but im new to
I'm trying to make a div appear to slide out to the right of
I am trying to make a child div slide into view within a parent
I'm trying to make a 'slide-out' div that slides out when out hover over
I am trying to make a div to slide out and in upon hover
I am trying to make my DIV's height expand to it's child elements. I
I'm trying to make a div assume 100% of it's parent div. The parent
I'm trying to make a div with an image in it that I'm using
I have been trying to make a div fade in evey 30sec and out

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.