mina.bounce(n)

Bounce缓动。


参数

n 数值。输入0~1.


返回值

输出。输出0~1.


使用
<svg id="svg" width="200" height="100"></svg>
<input id="button" type="button"  value="点击运动">
var c = Snap("#svg").paper.circle(50,50,40).attr({ fill: "red" });

document.getElementById("button").onclick = function() {
    c.animate({
        cx: c.attr("cx") == 50? 150 : 50
    }, 1000, mina.bounce);
};