The new Flip Card was an instant buy on the store. It allowed me to bench the version I had written.
But I do have a question about one of the behaviors.
I already have the card live on one of my sites, but I have noticed that if I move the mouse continuously over the four cards I have, that they will all rotate to open. I have them set to rotate on hover and this behaves correctly if you move slowly from one card to another. But when moving at a more steady pace over them they will all eventually end up open.
Is this expected behavior or do I possibly have something setup incorrectly. Ideally, I would like only one card to be flipped at a time, regardless of how I move over the cards.
I really like how it feels and am stoked we have this available. But I am curious about this issue as I could not find any documentation on the new component.
This is a classic flip card bug. It happens because the transition has not finished flipping the card to the back, and your mouse has already left, so won’t register the mouse leave to flip back to the front.
Turned out the issue is in the JS. I amended a version of the origonal with a fix. If @ben wants to reach out in a PM, it’s a copy paste job. I won’t post the script here publicly.
I’ve just pushed an update to the Card Flip component on the store that will fix your issue — I also fixed a couple of other instances where it was possible for flipping to get out of sync and show the wrong face.
Give it a test and let me know if you’re still having issues