Jump to content
GreenSock

robwebb364

apply rotation to each of a dynamically generated class

Moderator Tag
Go to solution Solved by Diaco,

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

i really want to select all of a class to each be rotated:  please see the codepen


 


How should I do that?  Ive seen somewhere that the selector should be $(".classname") but either that is wrong or the GSAP syntax is wrong. 


 


 


grateful for help


--


 


 


See the Pen Lnocf by robertwebb364 (@robertwebb364) on CodePen

Link to comment
Share on other sites

BTW the codepen doesnt complete the dynamically generated ellipses, but this works on my machine. - however the animation does not. thanks

Link to comment
Share on other sites

  • Solution

Hi 

my friend your codepen generated ellipses completely ,  but they'r out of SVG viewbox ( 800 * 800 ) , var y=900 !!!  and the syntax's correct .


See the Pen ncrFe by anon (@anon) on CodePen


:)

  • Like 3
Link to comment
Share on other sites

bloody hell thank you!... and was not working on desktop due to some combination of wrong syntax and mistypes... its late here.  :-P

now sorted!

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