Created
June 22, 2019 12:54
-
-
Save fatihturan/3b2daec6f59b307fa49404cace5aa919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($('body').hasClass('page-about')) { | |
var controller = new ScrollMagic.Controller(); | |
for(var i=0; i<6; i++) { | |
var teamPerson = $(".team__person").eq(i); | |
var tween = new TimelineMax() | |
.from(teamPerson, 1, {y: "20%", opacity: 0, ease:Strong.easeOut}, 1) | |
new ScrollMagic.Scene({ | |
triggerHook: "onEnter", | |
triggerElement: '.team__person', | |
// reverse: false | |
}) | |
.setTween(tween) | |
.addTo(controller); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment