Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with transform:scale(x) #32

Closed
lawrenceshen opened this issue Mar 22, 2012 · 4 comments
Closed

Does not work with transform:scale(x) #32

lawrenceshen opened this issue Mar 22, 2012 · 4 comments

Comments

@lawrenceshen
Copy link

Hi, turn.js is very impressive! I would love to having it working on my magazine page.
My magazine page uses CSS transform:scale(x) property in order to scale up/down all background images/text, yet maintaining relative positions. However, this does not seem to work well with turn.js

If i scale up/down the entire container, the 'turn corners' of the pages will be off position.

Would you kindly advise would I should do? Thanks!

@blasten
Copy link
Owner

blasten commented Mar 23, 2012

I've thought about the best way to provide a functionality for zooming. I hope to provide a feature for that in next versions. It's not an easy issue, I don't really like the idea of using so many transformations over different parts of the magazine. The idea I have is to create a zoom method that will require to disable the flipping effect, because of performance. Do you think it would work for you? Something like this:

$('#id').turn('zoom',5); it will apply scale(5)

@lawrenceshen
Copy link
Author

Hey Blasten, thanks for replying.
To be honest, the flipping effect is the most impressing effect and I would love to use it even at the cost of performance. Perhaps there could be a toggle-able mode?
i.e
var $flipEffectOn = true;
$('#id').turn('zoom',5, $flipEffectOn); will apply scale(5) with flip effect enabled.

@blasten
Copy link
Owner

blasten commented Mar 26, 2012

Ok, I have to think about that!

@blasten blasten closed this as completed Mar 26, 2012
@zertol
Copy link

zertol commented Sep 20, 2017

Hello, I'm facing the same issue. Did you ever figure out a way to solve it?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants