(pos < (2.5/2.75)) {
return (7.5625*(pos-=(2.25/2.75))*pos + .9375);
} else {
return (7.5625*(pos-=(2.625/2.75))*pos + .984375);
}
}
flower(''test2'', ''left:300px;padding:10px;border:50px solid #ff0000'', {
duration: 1500,
after: function(){
flower(''test1'', ''background:#0f0;left:100px;padding-bottom:100px;opacity:1'', {
duration: 1234, easing: bounce
});
}
});
})();
</script>
参考 : http://scripty2.com/doc/scripty2%20fx/s2/fx/transitions.html