Jump to content
Search Community

JACK LEE

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by JACK LEE

  1. thanks for the reply, I've tried to select a path as shown in the below, but still not working. 

    maybe it's something wrong with the way I import drawSVG? can you please check the way i importing the drawSVGplugins, i've done the same for split text plugin and it works fine.

     

    598ac5a665a88_ScreenShot2017-08-09at16_19_39.png.c2f1e288d62d43936208825563ff06e5.png

    598ac56948ec5_ScreenShot2017-08-09at16_18_17.png.37a1e9405ce549920d2b93db4bee70a8.png598ac565c5309_ScreenShot2017-08-09at16_18_04.png.8ac2ac87a9df875e84ebfe0a8f4ea4a3.png

    598ac64e0478d_ScreenShot2017-08-09at16_22_24.png.56165078be74691378763f64bb5e6824.png

  2. I am not sure what's the problem that causes the drawSVG not being called.

    I have also tired the splittext plugin and that works fine.

    Firstly, The TimelineMax is working, the last piece of code in red is working fine but not others with the "drawSVG"  in it.

     

    animateLine: function () {
          var svgs = document.getElementsByTagName('svg')
          var tl = new TimelineMax()
          tl.staggerFromTo(svgs, 1, {drawSVG: '100%'}, {drawSVG: '50% 50%'}, 0.1)
            .fromTo(svgs, 0.1, {drawSVG: '0%'}, {drawSVG: '10%', immediateRender: false}, '+=0.1')
            .staggerTo(svgs, 1, {drawSVG: '90% 100%'}, 0.5)
            .to(svgs, 1, {rotation: 360, scale: 0.5, drawSVG: '100%', stroke: 'white', strokeWidth: 6, transformOrigin: '50% 50%'})
            .staggerTo(svgs, 0.5, {stroke: 'red', scale: 1.5, opacity: 0}, 0.2)
        }

    Screen Shot 2017-08-08 at 10.21.09.png

×
×
  • Create New...