Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My SuperScroll Orama not working in firefox while working in chrome #181

Open
sam-94 opened this issue May 21, 2018 · 0 comments
Open

My SuperScroll Orama not working in firefox while working in chrome #181

sam-94 opened this issue May 21, 2018 · 0 comments

Comments

@sam-94
Copy link

sam-94 commented May 21, 2018

$(window).resize(function () {
controller.triggerCheckAnim();
});
var controller = $.superscrollorama();
var pinDur = 500;
// create animation timeline for pinned element
var pinAnimations = new TimelineLite();
pinAnimations
.append([
TweenMax.to($(' #gs1'), 0.5, {css: {opacity: '1', }, ease: Quad.easeInOut}),
TweenMax.to($('#row1'), 0.2, {className: "+=active"}),
])

.append([
TweenMax.to($('#gs1'), 0.5, {css: {opacity: '0', }, ease: Quad.easeInOut}),
TweenMax.to($('#row1'), 0.5, {className: "-=active"}),
TweenMax.to($('#row2'), 0.6, {className: "+=active"}),
TweenMax.to($('#gs2'), 2, {css: {opacity: '1', }, ease: Quad.easeInOut}),
])

.append([
TweenMax.to($('#gs2'), 0.5, {css: {opacity: '0', }, ease: Quad.easeInOut}),
TweenMax.to($('#row2'), 0.5, {className: "-=active"}),
TweenMax.to($('#row3'), 0.6, {className: "+=active"}),
TweenMax.to($('#gs3'), 2, {css: {opacity: '1', }, ease: Quad.easeInOut}),
])

.append([
TweenMax.to($('#gs3'), 0.5, {css: {opacity: '0', }, ease: Quad.easeInOut}),
TweenMax.to($('#row3'), 0.5, {className: "-=active"}),
TweenMax.to($('#row4'), 0.6, {className: "+=active"}),
TweenMax.to($('#gs4'), 2, {css: {opacity: '1', }, ease: Quad.easeInOut}),
])

// pin element, use onPin and onUnpin to adjust the height of the element
controller.pin($('.animatedscrollwrap'), pinDur, {
anim: pinAnimations,
offset: 500,

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant