startAt
优质
小牛编辑
129浏览
2023-12-01
startAt: Object
设置动画属性开始时的值
TweenMax.to(mc, 2, {x:500, startAt:{x:200}});
startAt适用于TweenMax
startAt的参数
startAt 示例
body {
background: #f8f8f8;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color: #000;
margin: 0 10px;
padding: 0;
}
.box {
width:50px;
height:50px;
border-radius:6px;
margin-top:4px;
display:inline-block
}
.green{
background-color:#6fb936;
}
new TweenMax('.box', 3, {
x: 500,
startAt: {x:200},//从200开始
});