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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:41:42+00:00 2026-05-19T12:41:42+00:00

Link: http://jsfiddle.net/kbJCc/1/ Unfortunately I can’t even perform the most simple animation with jquery right

  • 0

Link: http://jsfiddle.net/kbJCc/1/

Unfortunately I can’t even perform the most simple animation with jquery right now.
I’ve got a quadratic div separated in 4 buttons. Each button represents one corner of my screen. So if I press btn1 my quadrativ div should animate to the upper-left corner.
btn2 should animate the div to the upper-right. btn3 bottom left a.s.o.

Now there are two problems:
1. animation is not smooth in safari & chrome (it jumps from one corner to an other)
2. If I have clicked all (one after the previous animation) the div is stuck in the upper left corner.

Firebug told me that my div keeps all of the css rules applied by $.animate()?!

Hopefully someone out here can help me.

Thank you so much.

Btw. the div initially should have been centered on my window 🙂

  • 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-19T12:41:43+00:00Added an answer on May 19, 2026 at 12:41 pm

    I have updated your jsfiddle. Basically, I gave the element containing main-menu static dimensions so that the JavaScript has something from which to calculate positions. I then initialized the main-menu element to the “center” of the document via JavaScript once the DOM is ready (technically, this could, and should, be done in the stylesheet). Finally, I updated your animations to explicitly animate all sides of the main-menu element.

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

Sidebar

Related Questions

Here's a jsFiddle link: http://jsfiddle.net/HunEj/ So you can click on the checkbox, and it'll
Fiddler Link : http://jsfiddle.net/nLxc4/5/ My code : <html> <head> <script type=text/javascript src=js/jquery-1.5.1.min.js></script> <script type=text/javascript>
I've made a smiley at the following link: http://jsfiddle.net/UzvWc/4/ . Unfortunately, when I embed
http://jsfiddle.net/SXrAb/ Following the jsfiddle link there is a simplified sample of what I need.
http://jsfiddle.net/FS4zT/ If you visit the above link you see what am describing below. Summary:
Here is the link to the jsfiddle: http://jsfiddle.net/d3xMZ/ when I hover, it does exactly
In the following link: http://jsfiddle.net/gCvbT/ , if you click on General and then click
UPDATE If you try the form on this link http://jsfiddle.net/Matt_KP/BwmzQ/ the fiddle and select
Fiddle link: http://jsfiddle.net/T35fH/ Hi! I m trying to have 2 iframe youtube video player
Please check this link http://jsfiddle.net/sasindu555/xaYTt/ I want to stop floating special_features div after scrolling

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.