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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:12:36+00:00 2026-05-12T00:12:36+00:00

I have a simple jquery animation on a div, which is inside a div,

  • 0

I have a simple jquery animation on a div, which is inside a div, that has been loaded dynamically. Ie: User clicks link, drilldown.php loads up inside a div below. Then I have a bunch of divs inside that, one for each option.

Upon clicking the option, i want the div (or image inside the div, not fussed) to animate to approx 300px right and 300px up, but it seems like it is only moving inside the div, when it gets to the edge of the div, it starts again from the bottom of that div, it doesnt continue over the border.

I hope that makes sense, here is the jQuery code:

$("#option").click(function(){
    $("#option_img").animate({
width: "120%",
height: "120%",
left: "-=300px",
top: "-=300px",
opacity: 0.0,
      }, 15000 );
      });

Thanks in advance!

Ryan

EDIT:

This error is caused by the containing DIV being set to overflow:scroll; which is necessary because of the amount of results it is returning. Does anybody know how this can be avoided? I tried iframe as well, but that obviously does the same thing.

  • 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-12T00:12:36+00:00Added an answer on May 12, 2026 at 12:12 am

    Kind of strange, the only thing that I can think of without having all your code is that your click function is actually never running and the minor movement is because of something else. Usually when you load something dynamically like you are those items need to be registered.

    Take a look at Jquery Live …. see http://docs.jquery.com/Events/live

    “Added in jQuery 1.3: Binds a handler to an event (like click) for all current – and future – matched element. Can also bind custom events.”

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

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It turns out that you have to use withColumn to… May 12, 2026 at 1:08 am
  • Editorial Team
    Editorial Team added an answer I don't know what language/library you are using, but in… May 12, 2026 at 1:08 am
  • Editorial Team
    Editorial Team added an answer There is no silver bullet when it comes to work… May 12, 2026 at 1:08 am

Related Questions

I have the weirdest of problems. I have a jQuery function that animates the
I work at a small website building company and on one of our clients
I am currently using jQuery to write an online application, that started off with
I'm trying to build a simple multi-level UL Horizontal Accordion (or slide menu) in
I have a simple jQuery animation using fadein and it works but once faded

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.