Solved

JQuery transition problems

Posted on 2014-09-22
4
196 Views
Last Modified: 2014-09-28
I am working on replacing an old piece of FLASH code which is a simple click and zoom map with three stages (images).

Basically, I had this working where the old map zoomed forwards like you were falling into the map, and then the other zooms in, but there is a requirement (because this is how it USED to work) to have it so that when the new maps come in, they overwrite the old map, as opposed to blanking it out. I have included the old SWF below.

I am using the transit plugin for the animations

So I have set the map to scale in from a small state (all transitions are done using the transit plugin, but for some reason it is blanking out the div it is overwriting before it gets to full screen. It is almost as though.. even though the DIV is scaled, the container is the full size and just filled with nothing

Here is the old FLASH version we are trying to supercede.

SWF Version

I have uploaded my HTML5 'attempt' to JSFiddle

My Attempt on JSFIddle

You will need to expand the RUN box to fit the whole map before you can see the first CLIKC HERE button

When you click on the CLICK HERE button, the next map scales in with a new button, click it again to get a closer map and then you are taken to another page (currently set to google). Even though it is not set to do so, the DIVS that are zooming in are blanking the one underneath.

I am sure (as this was a quick job) I have gone about this all wrong but any or all guidance to getting this final piece of the puzzle in place will be greatly appreciated
0
Comment
Question by:mvwmail
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 100 total points
ID: 40339455
if I can help :
you should train doing it with two images, one with zoom -100000 and the other one
both should have CSS :
position: absolute

once you click on the area of the visible one, you DON'T  hide it, but just append the second one too zoom to the right place (use CSS left,top to set tehe position to clicked region) and use jQuery.animate( {width:$( window ).width(), top:0, left:0}, "slow")
0
 
LVL 3

Accepted Solution

by:
mvwmail earned 0 total points
ID: 40340244
Finally got there by nesting the divs, this allowed overwriting without blanking out

Final Fiddle!
0
 
LVL 3

Author Comment

by:mvwmail
ID: 40340257
The correct URl to the final asnwer

The Final Solution
0
 
LVL 3

Author Closing Comment

by:mvwmail
ID: 40348382
Appreciate you taking the time, and indirectly I used your technique just with divs

http://jsfiddle.net/MOLEDesign/L5b67ptn/
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question