Jump to content
GreenSock

lzy100p

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by lzy100p

  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:

    See the Pen oKwMaY by lzy100p (@lzy100p) on CodePen

  2. 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

    See the Pen qqmKWa by lzy100p (@lzy100p) on CodePen

×