Jump to content
Search Community

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Posted
need help.
do animation
stopped on what you need to get a random value on the x axis
получить  целое число в приделах моего <div>
my - div width: 250px;
 
var chel_1 = new TimelineMax();
chel_1.to(".pi", .6, { xMath.random()});
 
I want to get the crowd of people who got off the train ...
If it is not possible to tell from this request.
I will look for another option solutions.
 

 

Thank you for your assistance....

Posted

I don't quite understand your question. Could you rephrase it? 

 

If you're trying to get a random number between 0 and 250, you can do Math.random() * 250. 

  • Like 2

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