nnattawat / flip

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

Cannot read property 'isFlipped' of undefined #115

Open ConduciveMammal opened 7 years ago

ConduciveMammal commented 7 years ago

I've been trying to implement Flip into my Shopify Slate site and I'm getting this message in my console:

Cannot read property 'isFlipped' of undefined

My code is closely like:

<div class="form-cards">
      <div class="card card--form login-form front">
            First Card Content
           <span class="card-flip">Forgot Password</span>
       </div>
       <div class="card card--form password-form back">
            Second Card Content
           <span class="card-flip">Cancel</span>
       </div>
 </div>
$(".form-cards").flip({
  trigger: 'manual'
});   
$("#card-flip").flip('toggle');
medinalex commented 6 years ago

i had same issue

srinubits commented 5 years ago

if you use the specific version of jQuery mentioned, you'd not get the issue. Think it is tied to a specific version of jQuery