Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

lzy100p

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Newbie

About lzy100p

  • Rank
    Newbie
  1. ClipPath animation doesn't work on the IOS12 var tl1 = new TimelineMax({repeat:-1,paused:true}) tl1.to(div1,0,{webkitClipPath:"polygon(0px 0px,0px 100px,100px 100px)"}) tl1.to(div1,1,{webkitClipPath:"polygon(100px 0px,100px 100px,200px 100px)"}) tl1.render(0) tl1.play() codepen: https://codepen.io/lzy100p/pen/oKwMaY
  2. After running killTweensOf(), change the properties autoAlpha. It does not work. killTweensOf() is in the onComplete. i use 2 tweens,because I want to use different ease http://codepen.io/lzy100p/pen/bgRVVW
  3. var d1=document.createElement("div") document.body.appendChild(d1) d1.style.left="0px" d1.style.top="0px" d1.style.width="100px" d1.style.height="100px" d1.style.position="absolute" d1.style.background="#ff0000" var p3to=new TimelineMax({repeat:-1,paused:true}) p3to.to(d1,1,{autoAlpha:1,physics2D: {angle: 0,velocity: 300,gravity: 500}}) p3to.to(d1,0.3,{autoAlpha:0},"-=0.3") p3to.render(0) p3to.play() it will throw an error Uncaught TypeError: Cannot read property 'length' of undefined
×