nnattawat / flip

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

Window resize event + forceHeight #98

Open madeinua opened 7 years ago

madeinua commented 7 years ago

Hi there,

found a problem related to the card height when you resizing the window (e.g. rotate your phone/tablet from/to the landscape mode) + forceHeight: true option. The height of the card should be automatically changed depends on the content height. Currently it stays with the initial value.

Please implement some logic (e.g. window.resize) to solve this problem.

Thanks, Artem.

Alluuu commented 7 years ago

I have a solution (depending the flip() is attached to .card):

(function ($) { /**

}(jQuery));