Jump to content
Search Community

andgs123

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by andgs123

  1. Hello
     
    I'm using TweenMax with scrollmagic.  I was hoping to have my top: 200px, change dynamically based on the size of the browser, so something like $('#container-div).position().top * 1.2 instead of 200px
     
    Is this possible?
     
    Thanks very much
     
     
    var controller = new ScrollMagic();
     
      var seq = new TimelineMax()
        .add(TweenMax.to("#top-text-container", 100, {top: "200px", force3D:true}))
     
      new ScrollScene({
        duration:2800,
      }).setTween(seq)
        .addTo(controller);

×
×
  • Create New...