Cassie
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Cassie
-
-
Heya! Yeah it seems like unpkg is down at the moment, you can use the jsdelivr links from our install helper instead
https://gsap.com/docs/v3/Installation/?tab=npm&module=esm&method=private+registry&tier=free&club=true&require=false&trial=trueDraggable has an autoscroll property, maybe that's what you're after, from the docs it looks like it should work for any scrollable container
https://gsap.com/docs/v3/Plugins/Draggable/autoScroll/ -
Hi there! There are a lot of questions here and your demo is very involved.
The best way to approach stuff like this is to strip things right back, remove react and tailwind and anything that could be causing confusion. Get the basics right, then build it up gradually again.Lets start here.
QuoteDynamic height calculation. As you can tell I've hardcoded the heights in order to get a decent understanding of what is happening.
This should be functions and calculated on dynamic height changes (as assets would need to be loaded in). Where should I start on this?Can you explain what you mean by this? What should be functions? I don't see any hard coded height, other than in the CSS. Your GSAP code is already nice and flexible. You can see that if we add some content into the orange panel rather than a fixed height, the pinning works as expected.
If you're adding content in via JS, then it will behave exactly the same, with the small caveat that you'll need to let ScrollTrigger *know* that you've just changed the height. You can do this by calling ScrollTrigger.refresh()
I've made a codepen demo as a starting point for you. If you're happy with this part of the question we can look at the video's. It would be very helpful if you could add the videos into this demo for me to show the issue.
See the Pen QWPxBxX?editors=1000 by GreenSock (@GreenSock) on CodePen
This feels like it's likely an issue with the order the ScrollTriggers are being created or called. Which is probably down to React, but let's get this working in codepen first, then when we know that it works and have surfaced any GSAP specific issues or confusion, we can sort it into components and pop it back into react-land.
-
Yeah I could see why it would be useful if it's a small addition
-
Hi there!
Thanks for the kind words.
Yeah, canvas is usually better for stuff with lots of elements. Pixi is a library that uses canvas so it makes stuff a little easier than using the browser API directly. Your example is pretty simple though so maybe you could just skip pixi and use canvas?
Here's a canvas demo that may help
See the Pen abMMOar?editors=1010 by ninja1pro (@ninja1pro) on CodePen
And a pixi demo (this is using old GSAP syntax - but it's using pixi to add images so that's helpful)
See the Pen qBEJVeN by Koenie (@Koenie) on CodePen
The pixi docs are good too
https://pixijs.com/8.x/guides/components/sprites- 3
-
Quote
I've also just tested the position parameter from your link. It's working nice for each item animation. But I have failed to achieve to start the whole animation of the second category item earlier. It is always waiting for the previous item. Do I need something else here?
I don't know what you've tried, sorry.
If you show me what you've done (fork the demo above with new code) then I can take a look. -
Hey, so you can achieve this with another loop within your current loop.
See the Pen LYvrxwd?editors=1010 by GreenSock (@GreenSock) on CodePen
If that's not the correct order, the easiest way to fix that is to change the order of the items within the SVG, but you could also use array methods in JS to swop the order around.
If you need to adjust the timing, you should look into the position parameter.
Hope this helps!
- 2
-
Hi there, thanks for your support and sorry to hear you've run into an issue. 💜
I opened this site in safari and used the bookmarks and couldn't recreate this issue at all. It's also very hard (near impossible) for us to debug live sites.
Are you using ScrollSmoother? If so, maybe you could find out the exact steps to replicate the issue from the client, then try and see if you can replicate the issue on this codepen?
https://cdpn.io/pen/debug/KKXZOyZ
If you can we'll look into it. If not then I recommend layering in potentially problematic bits of your code until the issue surfaces so that you can give us a demo and a starting point to work from. -
That's a very complex interaction, it would involve a huge amount of knowledge and understanding of WebGL and GSAP.
Everyone has to start somewhere though - https://gsap.com/resources/get-started
The best way to learn is through making! Give that article a read and try creating something similar. You'll learn a lot in the process. -
Good question! I would try like that too, but you're right. It's not working.
Paging @GreenSock for feedback on whether it's possible to be set another way or worth adding in a future version. -
Hi there!
Seems like you may have forgotten to add the main GSAP file?
https://gsap.com/docs/v3/Installation/?tab=cdn&module=esm&method=private+registry&tier=free&club=true&require=false&trial=true&plugins=ScrollTriggerHave you included both the script tags found on this page?
-
Hey, a couple of small issues here
One's a little syntax thing, you capitalised DrawSVG in the tween, the other issue is maybe an expectation thing?
I've coloured the strokes and fill differently so you can see what DrawSVG does.
See the Pen ExJQEYX?editors=1100 by GreenSock (@GreenSock) on CodePen
Hope this helps
- 1
-
Not always no, it's dependent on your font loading strategy
https://stackoverflow.com/questions/25223470/does-domcontentloaded-wait-for-web-fonts-firefox#:~:text=NO%2C it does NOT!,to make it pixel perfect.&text=inside the head (it's called browser preload hints).- 2
-
Hey, I'm not really sure why this would make a difference unless either the text coming from the backend is dynamically injected later than page load or the class itself is added later?
My guess would be that the fonts are loading later and causing a layout shift?
maybe...document.fonts.ready.then(function () { ScrollTrigger.refresh() });
If this doesn't help please give us a demo showing the issue. Thanks -
(Ah, just realised which one you were after, sorry I thought you were talking about the get GSAP button on the install page)
I'll get the other one popped in a codepen too. -
Here's a simplified example!
See the Pen MWRrBqQ?editors=0010 by GreenSock (@GreenSock) on CodePen
Although the one on the site actually uses a timeline and calls invalidate each time so that the random values get refreshed.
I'll see if I can extract it into a codepen 👀- 1
-
We're back up again everyone! Thanks for bearing with us through this outage. 💚 We appreciate you all!
-
We're back up again everyone! Thanks for bearing with us through this outage. 💚 We appreciate you all!
- 3
-
We're back up again everyone! Thanks for bearing with us through this outage. 💚
- 2
-
Another workaround is to temporarily allow insecure connections: `npm config set strict-ssl false`.
-
I'm aware it's more complex if you've got pipelines set up, but the .tgz route is fail safe while we wait for this to be solved.
Just drop the .tgz file in the root of the project and runnpm install ./gsap-bonus.tgz
https://gsap.com/docs/v3/Installation/?tab=npm&module=esm&method=zip&tier=free&club=true&require=false&trial=true -
We're incredibly sorry for the inconvenience. We're waiting on the hosting provider for a fix at the moment, I'm afraid I can't give an estimate right now.
-
Hi there, yes it's down to our SSR cert.
We're working on a fix, In the interim you can use the Zip file to access the club files.Thanks for your patience and support 🙏
- 1
-
We're aware and currently working on a fix! Apologies for the inconvenience and thanks for your patience.
In the interim you can use the zip file to access Club Plugins -
We're working on a fix currently. Afraid I don't have a solid estimation for you. ASAP
Layered pinning from bottom (variation) with pinned video scrub
in GSAP
Posted
After replying I realised it would likely be easier to just strip the video player out and just focus on the pinning.
(this is what I mean by strip it back to the basics)
See the Pen QWPxBxX?editors=0010 by GreenSock (@GreenSock) on CodePen
The issue is likely that the scrolltriggers are being created in a different order than they appear on the page. We can use ScrollTrigger.sort to fix this.