Jump to content
Search Community

wrapYoyo(0,0,x) NaN

benoit test
Moderator Tag

Recommended Posts

Hey benoit.

 

Are you saying that if the same number is passed as both of the first parameters you want that number to be given instead of NaN? I suppose that makes sense but why do you need this? Can you please provide some background behind how this situation might occur? We don't want to needlessly add more conditional logic to the core.

  • Like 1
Link to comment
Share on other sites

Just playing with math, design, shapes and an input range.
I make many css transforms and I use wrap (yoyo).

 

gsap.utils.wrapYoyo(0, 0 /* the value from my range between 0 and 100 */, x )

Return a NaN not sound like give me a wrap number between x and y.

 

gsap.utils.random(0,0) // 0 ;¬)

Just to make sense  :)

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