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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:43:39+00:00 2026-05-13T06:43:39+00:00

how can i animate a div through out screen with single click with jquery

  • 0

how can i animate a div through out screen with single click with jquery

  • 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-13T06:43:39+00:00Added an answer on May 13, 2026 at 6:43 am

    I’m assuming that you want to move the DIV around the screen from one position to another. The way to do this would be to chain several animate() calls moving it from one position to another as the previous move completes. Perhaps store the intermediate positions, if you have them, in an array and pop off the next position for each animate call until all the calls are completed. Using a recursive callback function would probably be the best way to handle this.

    I’ll assume that the DIV is already absolutely positioned. If not, you might want to have a look at the makeAbsolute plugin.

    untested

    var positions = [ [ x1, y1 ], [ x2, y2 ], .. ];
    
    play( $('#myDiv'), positions );
    
    
    function play( elem, positions ) {
       if (positions.length > 0) {
           var position = positions.shift();
           elem.animate( {  left: position[0], top: position[1] } }, function() {
               play( elem, positions );
           });
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just wondering how I can animate the jQuery form ui's div update
Is there any way i can animate a div using percentages with jquery? I've
can we use opacity,height,width,left and top together with jquery animate function $('#div').animate({ opacity :
With my code I can get a div to scroll through 4 images, but
I have the following snippet of code that loops through the jQuery animate function
How do you animate a div element to the middle of the screen from
I need to make the 'content' div animate after the inner divs fade out.
how can I animate only a part of an element? I show/hide a div
I want to preserve Ripple effect on my UIImageView. I know we can animate
How can I animate the tray icon while the main application is processing? I

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.