Jump to content
Search Community

Reinis

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Reinis

  1. Hi!

     

    I'd need to use some sticky elements on my site but the problem is, that when I use some ScrollTriggers with snapping the whole page, my position: sticky elements are broken even if they have nothing to do with other animated elements. I understand why this happens but I wonder maybe there is some known workaround to fix this. 

     

    Please see the demo.

     

    Thank you!

    See the Pen yLwroLm by Reinis-Meulis (@Reinis-Meulis) on CodePen

  2. Greetings!

    I have run into this problem which seems quite trivial but I cannot find a solution. Please take a look at the demo. As you see I have a whole page wrapper pinned for two animations, the first one happens as expected but the second one I want to be started at a position of "center center" happens to start 500px earlier which is the duration of the previous animation. Is there any chance to take that duration into account when calculating the starting point of the second animation?

    Thanks in advance!

    See the Pen yLwKoEV by Reinis-Meulis (@Reinis-Meulis) on CodePen

  3. Hi again!

     

    I tried a few examples and unfortuneatly, there's nothing with either png size or encoding.

     

    First - we can't notice shaking on Diaco's example because this Santa alredy has all edges moving. I tried to chop off a part of it and then you can see this shaking very clear.

     

    Second - this shaking is not happening if result of frame width multiplied with resize ratio is round number. So - if frame width is 150px and you scale it by 0.5, it's ok, but if you try 0.51, it shakes.

    Check it all here:

    See the Pen azWgRO by anon (@anon) on CodePen

     

    So at this moment a have no idea how to solve it with the sprites we have. :)

×
×
  • Create New...