Jump to content
Search Community

gsap 3 - scroll to ease none

IntouchGroup test
Moderator Tag

Recommended Posts

3 hours ago, ZachSaucier said:

Hey IntouchGroup and welcome to the forums.

 

In GSAP 3, eases are super simple: A linear/no ease is just ease: "none" (or ease: "linear", both work)!

 

Thanks for the reduced demo

ah! I had a similar issue. I looked in the docs and there it told me to get a 'linear.easeNone' or 'power0.easeNone' but neither of those worked. 

 

as well as in the ease visualiser if you click power0 

Link to comment
Share on other sites

4 hours ago, ZachSaucier said:

Hey IntouchGroup and welcome to the forums.

 

In GSAP 3, eases are super simple: A linear/no ease is just ease: "none" (or ease: "linear", both work)!

 

Thanks for the reduced demo

hey zach, am starting study gsap3 this week, am sorry if my question are bad or noobs, but you're sure this is a good and more easy approach in workflow? 
I loved the objets ref because it allow me search all references in my engine where i use specific math ease.


Example right click on Elastic here and click find all reference, i can found all Elastics tweening in my engines.
P5nlh140_o.png

In the example your show, from my know. vscode not allow to search all references by strings  "Elastic". or "Power0","Power1","Power2"..
The result give none.
Or maybe i do something wrong ?

I know window allow some deep search string that can help. but it not very productive
b2tN5fas_o.png

So the string approach will break vscode intellisense for search math ease ?

Link to comment
Share on other sites

7 minutes ago, OSUblake said:

You can still search your project for strings. That's what this big button is for.

 

1304851651_Annotation2019-11-11235749.png.907032101828e6011cd19a1a36e73afe.png

 

And you don't have to use strings for eases. The old way still works.

 

And you can use .parseEase if you need an actual reference.

https://greensock.com/docs/v3/GSAP/gsap.parseEase()

 

tanks you blake this is a good answer.
Only issue for search string, , is if i use a lot of comment, it also search in comment or local variables name.
But if we can use old way , or parseEase  look interesting thanks

Link to comment
Share on other sites

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...