Можно ли это написать на голом JavaScript'е
Можно:
var vwWidth = window.innerWidth;
var controller = new ScrollMagic.Controller();
//for horizontal scrolling
var horizontalSlide = new TimelineMax()
.to(".div2", 0.2, {x: 0, ease: Power1.easeOut}, )
.to(".div2", 1, {x: -vwWidth, ease: Power1.easeOut}, )
.to(".div2", 0.2, {x: -vwWidth, ease: Power1.easeOut}, )
.to(".div2", 1, {x: -2*vwWidth, ease: Power1.easeOut}, )
.to(".div2", 0.2, {x: -2*vwWidth, ease: Power1.easeOut}, )
new ScrollMagic.Scene({
triggerElement: ".div2",
duration: "350%",
offset: 0,
triggerHook: -0.02
})
.setPin('.div2')
.setTween(horizontalSlide)
.addTo(controller)
https://codepen.io/vishwakarma02/pen/QxYJQw