css - Flip animation works OK in Chrome but not in Safari -
i have following fiddle: http://jsfiddle.net/mauricederegt/hy2dvl1u/43/
when open in chrome , click card flip , move right. looks ok in chrome, when in safari (v9) animation kinda sucks (it has clipping etc, click faster see mess-up better)
part of css (please see whole in fiddle):
/* entire container, keeps perspective */ .flip-container { perspective: 1000; transform-style: preserve-3d; } /* updated! flip pane when .flipped class applied */ .flip-container.flipped .back { transform: rotatey(0deg); } .flip-container.flipped .front { transform: rotatey(180deg); } .flip-container, .front, .back { width: 7.1428rem; height: 10rem; } /* flip speed goes here */ .flipper { transition: 200ms; transform-style: preserve-3d; position: relative; }
what missing? why flipping animation bad in safari?
kind regards,
ps. don't use -webkit- prefix since shouldn't needed anymore
try it
/* entire container, keeps perspective */ .flip-container { perspective: 1000; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } /* updated! flip pane when .flipped class applied */ .flip-container.flipped .back { -webkit-transform: rotatey(0deg); transform: rotatey(0deg); } .flip-container.flipped .front { -webkit-transform: rotatey(180deg); transform: rotatey(180deg); } .flip-container, .front, .back { width: 7.1428rem; height: 10rem; } /* flip speed goes here */ .flipper { -webkit-transition: 200ms; transition: 200ms; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; position: relative; }
Comments
Post a Comment