Solved

JQuery transition problems

Posted on 2014-09-22
4
197 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

690 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