Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Nysh

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Nysh's Achievements

  1. Hey fam thanks so much for all the replies.😍 This forum is truly awesome! I gave it another shot with a slightly different approach. I specified the end, and made the start and end triggers the same, for both timelines. I think this ensures there's no conflict between the first and second tween? start: "top center", end: "top center", It seems to be working so far / fixed the issue of overlap. Here's an updated codepen https://codepen.io/Nysh/pen/mdmvVxy
  2. Hey guys, I'm running into problems when i scroll down or up too quickly. It must be something quite simple, I'm missing. If you scroll down slow, then box 1 appears, and then as you go further down, box-2 appears. But if you scroll down quickly, past both triggers, box 1 doesn't disappear quick enough and all the boxes appear on top of each other. I'm using fromTo's and I've tried "immediate render: false" and "overwrite" but, have not been able to work out what is causing this issue. Hope that all made sense. I've made a minimal codepen demo to show what's going on. Any help is greatly appreciated. Cheers
  3. Hey guys, Couldn't find any info in the docs about using ScrollTrigger.matchMedia and pointers? I tried it with pointer:coarse and it didn't seem to register? Is this a feature / would it be in the future? Something like below. Thanks heaps ScrollTrigger.matchMedia({ "(pointer: coarse)": function() { // setup animations and ScrollTriggers for pointer: coarse?? }, });
  4. Hey @ZachSaucier~ Thanks so much, that seems to fix the first issue perfectly. However, there is still the issue of the "double jump" when moving the cursor from one box to the other back and forth quickly. Not sure why that's happening? Does it have something to do with the ticker?
  5. Hey @mikel, Thanks for the tip and quick response. I've made the speed value = 0.1 on mouseleave which makes it much smoother on mouseleave, and then I've used a timeout function (which feels a bit hacky) to return the speed variable back to 1.0. as this is the speed needed for the cursor normally. This works ok, but due to the timeout the cursor still jumps back into position. Is there a way to make the speed return to 1.0 smoothly after mouseleave , using gsap? https://codepen.io/Nysh/pen/JjbNLwP
  6. Hey guys, I'm having a couple of issues with animating a cursor. The aim is to have the cursor smoothly snap into position when entering a box and smoothly animate back to mouse position on leave (rather than jump to the new mouse position). Also, the cursor should smoothly animate when moving from one box to the other quickly. 1. How would I go about animating the cursor smoothly back to the mouse position after leaving the box (not sure how to store the mouse position while active = false. 2. When moving from one box to the other quickly, how would I prevent the cursor from jumping/flashing back, just before it locks into the new position. Hope this makes sense. I feel like both issues are related to storing the mouse position while the fixCursor function is running? but still unsure how to make it animate smoothly. Any help is greatly appreciated. Cheers
  7. Yooo @Dipscom~ Thanks so much ~!! I've updated the Codepen and it seems to be working exactly as intended! I'm not updating the mouse.x and mouse.y on dragEnd though? i've kept the active variable false the whole time, not sure if that is why? Thanks again for taking the time to help us out. Much appreciated. https://codepen.io/Nysh/pen/jOMogZa
  8. Hey @Dipscom Thanks so much for the prompt response. That makes sense about the values not being shared...sorry for the noob questions... how would I go about storing those values in the mouse object? I would love to make it work, but i am a bit out of my depth
  9. Hey fam, As can be seen in the demo, when the drag completes, the cursor jumps back to its original position, before updating on mousemove. I'm wondering if there's a way to store or update it's position during the drag event (using quicksetter?), to avoid the awkard "jump" at the end. I'm using Flickity for the carousel, but the concept might be helpful/applicable for anyone using a GSAP custom cursor with a draggable slider. Any guidance would be greatly appreciated . Cheers ~!
  10. yooo~ that's so slick~ Thank you @mikel! That approach is so much better and cleaner. I applied it to my original width animation and now it works perfectly. Thanks again legend !! here's the updated codepen~ https://codepen.io/Nysh/pen/PoGLNWX
  11. Hey guys, Im trying to make an 2 image gallery/accordion in which the the hovered image expands and and the non hovered reduces in width. I've created a minimal demo of my approach, but i'm getting a "jump" when the mouse goes from one image to the other. I'm assuming this is because of the "fromTo". Wasn't sure how to go about it, if i needed to clearProps? Simple Criteria: - When the user mouse leaves completely, both images should return to their initial width (50%). - If the user moves from one image to the other, the widths should adjust smoothly. Sorry if this has already been asked. Any help to smooth out the effect would be greatly appreciated. Thanks a bunch Nish
  12. Hey guys, I'd like to achieve an infinite horizontal animation that changes direction (and speed) depending on whether the user scrolls up or down. The animation currently changes with scroll, but eventually stops (see codepen). I know there are a few examples of infinite loops on the forum, however I wasn't able to combine them with a change in scroll direction. Any help on how to create an infinite loop with this example would be amazing Cheers~
  13. Perfect! Thanks so much @akapowl
  14. Hey guys, Wondering if its possible to achieve a text-indent on the first line of text, while using Split Text. I've tried using " " within spans as someone had suggested before, but doesn't seem to work. Any help is greatly appreciated.
  15. Zach! Thanks so much mate. That worked https://codepen.io/Nysh/pen/qBZYPMM?editors=1010
×