Jump to content
Search Community

Tweenmax not working on ipad

Prajna Shetty test
Moderator Tag

Recommended Posts

TweenLite.defaultEase = Linear.easeNone;
        var ctrl = new ScrollMagic.Controller({
            addIndicators: false,
            vertical: false
        });

        // Create scenes
        $(".page").each(function(i) {
            let target1 = $(this).find(".home-banner-img");
            let target2 = $(this).find(".banner-brief");
            var tl = new TimelineMax();
            tl.from(target1, 0.5, {
                opacity: 0,
                x: 100
            });
            tl.from(target2, 1, {
                scale: 1.2
            }, 0);

            new ScrollMagic.Scene({
                    triggerElement: this,
                    duration: "80%",
                    triggerHook: 0.5
                })
                .setTween(tl)
                .addTo(ctrl)
        });

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...