Jump to content

Shahas Nizar

  • Posts

  • Joined

  • Last visited

Posts posted by Shahas Nizar

  1. 9 hours ago, OSUblake said:

    Now you just need to construct your timeline. I think it's easier to make sense of what's going on by not including ScrollTrigger at first. Just make your timeline, and once it's animating correctly THEN hook it up to ScrollTrigger.



    @OSUblake You helped me almost


    But what i want to achieve is to scale down the child elements (.panel-bg), not the parent one.


    Each child element should transform while its parent div gets pinned by ScrollTrigger.


    or please advise me if timeline is the correct method to achive this


    9 hours ago, OSUblake said:




  2. 1 hour ago, OSUblake said:

    Hi @Shahas Nizar


    You should start out by getting rid of the ScrollTriggers inside your timeline. There should only be 1 ScrollTrigger associated with a timeline. Check out the Most Common ScrollTrigger Mistakes

    @OSUblake Thank u for quick response


    As u stated i think i have managed to make it in a single ScrollTrigger, but still i'm unable to find the desired output. 


    Pinning for the parent element works fine but only last child element is transforming

    I tried with forEach method for child elements (.panel-bg) but still not working could you pls help me with this..


    demo updated : 

    See the Pen KKvOReo by shahas-nizar (@shahas-nizar) on CodePen

  3. Hello,


    I have a series of image that get pinned on after another.

    I would like to make the images pinned and scale while scrolling


    It seems that the image is pinned during the whole duration of the timeline, but scaling for each image is not working as expected


    For eg: i need all images to scale down from 2 to 1, 


    So please help me to transform each images individually after it's get pinned.



    Please have a look at this demo


    !Sorry my bad english :-)  


    Big thanks for this awesome plugin :)

    See the Pen KKvOReo by shahas-nizar (@shahas-nizar) on CodePen

  4. Hi Everybody! I would like to share my problem.

    I am using ScrollTrigger to smoothscroll and animate elements.
    Earlier i used Locomotive Scroll + ScrollTrigger together but when i knew that ScrollTrigger alone can do both, i decided to ditch Locomotive Scroll.

    I followed the following pen for using ScrollTrigger for smooth scroll.


    See the Pen PoZLpbp by ihatetomatoes (@ihatetomatoes) on CodePen


    This scripts working fine with normal projects but unfortunately, when i used it with vue JS the scrolling is not working like the above one. 

    I don't know how to fix this problem as i'm a beginner


    Can anyone please give me a solution

    See the Pen poPzvrP by shahas-nizar (@shahas-nizar) on CodePen