zoom out view function

Asked by Wanderer on 2009-09-03

In the showcase svg file, while moving from "Stage 1" to "Stage 2" using the views feature on slide #21, the view zooms out slightly from Stage 1 before zooming in again onto Stage 2.

I have tried adding two rectangles with the same order, one slightly zoomed out, but this doesn't seem to work, instead only one rectangle is used for the view and the other simply returns to a regular rectangle. I also can't see any other way to do this, maybe I am missing something.

Any help much appreciated.

Question information

English Edit question
JessyInk Edit question
No assignee Edit question
Last query:
Last reply:
Wanderer (dunc-white) said : #1

I should also add that I do not want to zoom out with one keystroke and zoom in with another, I want them to play together like in the showcase.


the described behaviour is quite expected. At the moment the transitions between views are calculated as a linear combination of the transformation matrices of the start and the end views (as I am sure you have seen in your study of the code). The zooming effect is a consequence of the fact that the views in the showcase are rotated. If you play with rotation and skewing there are some quite interesting effects you can achieve (some are expected others less so).

In the future, I would like to provide some other view-transitions that will allow more control (such as the ability to add a zoom effect even if you are just moving from one part of the slide to another or not having a zoom effect with rotated views). However, I haven't had time to work out about the details of the implementation.


ValessioBrito (valessio) said : #4

demos js+svg: http://paulirish.com/work/gordon/demos/

see it's demo with zoom and others effects:

Thanks for letting me know about gordon! It looks like a really nice project.

ValessioBrito (valessio) said : #6

it's similar script.

Create an order on the objects

Release effect following the order

Can you help with this problem?

Provide an answer of your own, or ask Wanderer for more information if necessary.

To post a message you must log in.