Jump to content
Search Community

Recommended Posts

Posted

OHello, everybody!

 

I have a Scrolltrigger and start parameter something like this "top 50%". But on mobile devices this is to late. Can I via machmedia do  some conditions on start position? I honestly try to Google it but with no luck. Thank you!

Posted

Thank you!  I read this docs. My question is can I do something like this for start parameter: isDesktop : "top 40%" ? "top 80%"

mvaneijgen
Posted

What have you tried already? We love to see what you can come up with, that way we can see your thought process and thus better help you understand the tools!


Here is a starter template which loads all the plugins, post back here with a minimal demo and someone will surely point you in the right direction. 

See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen.

 

Posted
On 2/14/2026 at 7:44 AM, Ilyaz said:

My question is can I do something like this for start parameter: isDesktop : "top 40%" ? "top 80%"

Absolutely! Just check the conditions syntax in the docs, create a simple demo in your local environment and experiment with ti:

https://gsap.com/docs/v3/GSAP/gsap.matchMedia()/#conditions

 

Happy Tweening!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...