Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Very strange behavior while onclick #15

Open
GioLogist opened this issue May 6, 2013 · 2 comments
Open

Very strange behavior while onclick #15

GioLogist opened this issue May 6, 2013 · 2 comments
Labels
Milestone

Comments

@GioLogist
Copy link

When i have it do the flip on load, it flips perfect. However, the second I try doing it onclick things get weird.

Check it out here:
new.almostfamous.com/test.html

Any idea what's up?

@yemM
Copy link
Owner

yemM commented May 6, 2013

It's definitely a bug in flippy. I wanted to release a new version last week end, but I'm a bit late. You can correct the bug in your flip.js if you replace :

perspective:Math.floor(this._Depth*this._nW)+"px"

with

"perspective":this._nW+"px"

or you can copy / paste the flippy content from the demo page :
http://blog.guilhemmarty.com/wp-content/themes/g/js/flippy.min.js

@GioLogist
Copy link
Author

Aw, gotcha. I actually had to do even a bit more to get it right, had to subtract a bit actually because it was still stretching. This is the only thing that worked for me:

"perspective":this._nW-400+"px"

Not sure what the clean way to go about this would be right now, but temporarily - this did it.

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

No branches or pull requests

2 participants