I am trying to run a short movie of background images without any animations between these. The code below does not work. Any ideas why?
var frameHeight = 585
var timeline = new TimelineMax({useFrames: true}),
i
for (i = 0; i < 9; i++) {
timeline.append(TweenMax.to(
'#spark h1 a',
1,
{
backgroundPosition: 'center -' + (frameHeight * i) + 'px',
useFrames: true,
frame: i
}
))
}
this.addScene(new ScrollScene({
triggerHook: .5,
triggerElement: this.getID(),
duration: 400
})
.setTween(timeline)
)
Thanks!