turn.js icon indicating copy to clipboard operation
turn.js copied to clipboard

Can a called turn mimic a corner-peel animation?

Open p-b opened this issue 14 years ago • 7 comments

Is it possible to have a called page turn (from a button or a swipe event) be set to do a default corner-peel type animation rather than sliding over as a straight horizontal wipe? Thanks!

p-b avatar Mar 14 '12 11:03 p-b

Not right now, I think it would be a great idea.

blasten avatar Mar 19 '12 00:03 blasten

Agree! +1

cipnt avatar Mar 20 '12 16:03 cipnt

How do you think it should work? How would you like to implement that?

blasten avatar Mar 21 '12 01:03 blasten

I was initially envisioning it as either setting a pixel or % offset --so a corner is 'dragged' to a point on the binding that is +- Xpx or X% from the edge and then released and the animation continues normally.

So a typical turn would be to drag the bottom corner up 25-35% of the magazine height for the first half of the animation, then 'let go.'

Alternately, an offset-angle or angle-range could be set for the leading edge of the turning page. This might be the more concise solution once vertical paging and other features go in, as you would not need to specify a corner, that would be automatic based on the angle, and could vary from turn to turn if a wide range such as -30 to 30 was used.

Not sure which of those would be easier to implement...

p-b avatar Mar 21 '12 10:03 p-b

Something like: $('sel').turn('move', {x:50, y:50}); You right, there will be necessary a coordinate system, I think % offset sounds like the most convient way.

blasten avatar Mar 23 '12 03:03 blasten

+1

FlashJunior avatar Mar 27 '12 19:03 FlashJunior

+2

jonaslund avatar Oct 19 '12 18:10 jonaslund