当前位置: 首页 > 文档资料 > TweenMax 中文文档 >

.target

优质
小牛编辑
118浏览
2023-12-01

.target : Object
获取动画的目标对象。

myTween.target

.target适用于TweenMaxTweenLite

.target的参数

.target 示例

.box {
    width:50px;
    height:50px;
    border-radius:6px;
    margin-top:4px;
    display:inline-block
  }
.green{
    background-color:#6fb936;
  }
myTween=new TweenLite('.box', 3, {
    x: 500,
});
console.log(myTween.target);

.target返回值

.target的补充说明