Jump to content
Search Community

Kokku

Members
  • Posts

    8
  • Joined

  • Last visited

Kokku's Achievements

  1. I had this same issue except it was the other way around - smooth on Chrome but very laggy on Safari. Solution: wrap all the images in divs and apply GSAP animations to the div instead of the img element.
  2. Thanks so much @Rodrigo! Exactly what I wanted to do. ? But now I thought of one more thing which would make it even better. Is it possible to have something like the native scroll-snap-type: proximity ? So that it would only snap when the scroller is closer to the element. I found a promising CodePen example so I'm going to try it myself.
  3. Hi, Posting here as my issue is somewhat related. Basically what I want to do is to snap to any specified elements inside the fake horizontal scrolling container. Here's a demo: https://codepen.io/matias_autio/pen/VwBpdGE So in this demo, I would want to snap to all the .decades. And there can be a random number of .items between them. Only thing I can think of is to calculate their relevant positions as percentages compared to the overall width of my ScrollTrigger but it seems rather complex and I was wondering if there is an easier way to do it.
  4. Kokku

    clearProps?

    Just a quick note that might help someone: make sure you use true (boolean) and not "true" (string) - was scratching my head for a good while because of this (or just use "all" )
  5. Kokku

    Scrollable overlay

    Hi! I have made a scrollable overlay that transitions to show the page under it. I want the overlay to disappear when scrolled to bottom. I have set it to trigger the animation on start: 'top 1' and it works great. I just can't understand why start: 'top top' doesn't work - is it a bug or is there some logical explanation? Thanks!!
  6. I found this approach useful for animating a modal in, and then when the closing animation completes to revert the modal element to its original state so it can be opened again.
  7. Working now! Thanks! I thought I was going crazy...
  8. Hi, It seems the id's of animations don't show up in the drop down menu... not even on the official demos like the one linked. Could not get it working on my local machine either. Is it broken or am I missing something here? ? Thanks.
×
×
  • Create New...