jquery - CSS3 transition-timing-function -
i need animate div top on slots in this link. have made demo, animation doesn't work properly. i'm trying jquery.easing.js
, same result. can explain me what's wrong , how can fix that.
my css:
.box { width: 100px; height: 100px; position: relative; top: 40px; background: red; -webkit-transition-duration: .2s; transition-duration: 2s; -webkit-transition-timing-function: cubic-bezier(.75, 1.95, .66,.56); transition-timing-function: cubic-bezier(.75, 1.95, .66, .56); -webkit-transition-property: top; } .box:hover{ top: 500px; }
i think problem not timing function doesn't work properly, when div moves, looses focus , hover...
is want ?
.launcher { width: 200px; height: 100px; background-color: lightgreen; } .box { width: 100px; height: 100px; position: relative; top: 10px; left: 0px; background: red; -webkit-transition-duration: .2s; transition-duration: 2s; -webkit-transition-timing-function: cubic-bezier(.75, 1.95, .66,.56); transition-timing-function: cubic-bezier(.75, 1.95, .66, .56); -webkit-transition-property: left; } .launcher:hover + .box{ left: 500px; }
<div class="launcher">hover me</div> <div class="box"></div>
Comments
Post a Comment