nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
624 stars 312 forks source link

disable plugin on width smaller than ... (minWidth func needed) #83

Closed pgarnek closed 8 years ago

pgarnek commented 8 years ago

Hello, im wondering how simply made functionality, to preserve animation only for certain width (something like minWidth property). I'm not so good in JS yet, maybe there is a simple solution?

Width should be checked on every window resize, to fully work witn responsive and rotating-abled screens (like tablets).

Any sugestions?

JemarJones commented 8 years ago

Please give a more exact description of what exactly you are asking for here. It is not clear to me what you are asking from what you've written here.

nnattawat commented 8 years ago

You need to manually unregister flip in $(window).resize() event. To unregister flip, do $('element').off('flip');