Jump to content
GreenSock

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

jakub40

Members
  • Posts

    3
  • Joined

  • Last visited

jakub40's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. jakub40

    Many setTween

    This solution add inline styles to all elements from timeline but dont animate it on scroll from value 0 to value in Timeline hmm
  2. jakub40

    Many setTween

    Unfortunately, it works the same as my solution ;/
  3. jakub40

    Many setTween

    Hello i have question. How to setTween to many different elements?? var controller = new ScrollMagic.Controller(); var scene = new ScrollMagic.Scene({triggerElement: ".layer_grouop", duration: 550}) // animate color and top border in relation to scroll position .setTween(".layer_8", {top: "100px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_7", {top: "100px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_6", {top: "55px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_4", {top: "35px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_3", {top: "20px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_2", {top: "5px"}) // the tween durtion can be omitted and defaults to 1 .setTween(".layer_1", {top: "-100px"}) // the tween durtion can be omitted and defaults to 1 .addIndicators({name: "2 (duration: 400)"}) // add indicators (requires plugin) .addTo(controller);
×