Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Carl

Master the Art of GSAP: Club GreenSock Members Save 50%

Recommended Posts

 

 

*** UPDATE 9/10/21 THIS PROMOTION HAS ENDED ***

 

 

 

 

Hey All,

 

I'm doing a test run of a special promotion for all Club GreenSock members (Green, Shockingly, and Business).

 

If you've invested your money in the awesome bonus plugins and the ongoing support of the platform I'm happy to offer you 50% savings on Lifetime access to my comprehensive and extremely specialized GreenSock training available at www.CreativeCodingClub.com.

 

For those that don't know, I've spent nearly a decade in these forums and 7 years working at GreenSock helping folks learn the ins-and-outs of the platform.

 

The Creative Coding Club courses are in simplest terms a collection of all the tips and tricks I've learned throughout the years helping frontend developers excel at GreenSock animation and avoid common beginner pitfalls.

 

 

Unlike typical "one and done" courses, the Creative Coding Club is a subscription-model that gives you access to 5 premium courses PLUS new lessons every week (over 120 now).

 

If you've spent any time in the GreenSock docs or these forums you've probably encountered my videos and demos so I'm not going to bombard you with a hard sell... just a killer deal:

 

50% off a Lifetime Subscription to Creative Coding Club (exp 9/8/21)

 

To get this deal you just have to send me a Personal Message (PM) through the GreenSock site requesting a coupon code.

 

Once logged into the GreenSock site follow these instructions

50-step1.png.1f47dccb3c0ea4bec3ecf7ab892bb694.png50-step2.png.01bc1bf130cc6866e455eb5fb49a4016.png50-step3.png.9ccf047132fecaeb5031bf498266f3eb.png

 

 

Once I receive your message I'll confirm your Club GreenSock membership status (by viewing your profile) and send you a coupon code.

 

I'll do my best to get it to you quickly (within 2-12 hours), but understand I do sleep and work ;) 

 

Please review the following before purchase:

 

  • This promotion is being run by Creative Coding Club.
  • GreenSock isn't involved with the selling, maintenance, or delivery of this training.
  • I offer a 28-day 100% money back guarantee. Just send me a note requesting a refund and it's yours.
  • This offer is only available to new Creative Coding Club students. 
  • This offer is only available to people with an active Club GreenSock membership.
  • This offer is only available to 1 member of a Multi-Developer Club GreenSock account. Contact me for info on team plans.
  • You must request your coupon prior to 9/8/21.
  • Coupons must be used before 9/15/21.

 

Let's keep this simple. If you're a Club GreenSock member and ready to commit to mastering the art of GreenSock animation through my Creative Coding Club courses and weekly lessons, send me a personal message (as outlined above)  and I'll get you going.

 

Carl

 

*** UPDATE 9/10/21 THIS PROMOTION HAS ENDED ***

 

Not a Club GreenSock member?

 

Well, this is the best time to join Club GreenSock, gain access to the bonus plugins, AND grab this incredible deal on my training. Remember, to get 50% off my training you must be a Club GreenSock member prior to enrolling.

 

If you're not a Club GreenSock member but still would like me to guide you on your training journey I have a little something for you too.

 

Save 20% on 1 Year or Lifetime memberships to Creative Coding Club (exp 9/8/21)

 

 

 

 

 

 

 

  • Like 7
Link to comment
Share on other sites

Hi Folks,

 

I appreciate the interest in the promotion but a few people have reached out for the 50% off coupon who are not Club GreenSock members.

 

If your status displays as "member" that means you only have a free GreenSock account which allows you to post in the forums.

 

You are only a Club GreenSock member if you have paid for a membership and it is still active.

 

Your profile page and hover card will both show your membership status as Simply Green, Shockingly Green, or Business Green with text or badge

 

Hover card (mouse over your avatar) of Club GreenSock member

hover-card.png.104bf03dc59c8b228ab9122443cbc455.png

 

Profile Page (click on your avatar) of Club GreenSock Member will show a badge

 

profile.png.55a16dfb1078aa341c970e8974a55690.png

 

 

If you send me a coupon request and I don't see your status as an active Club member I won't be able to supply a coupon.

 

Based on the confusion, I have raised the non-member discount to 20% off with code: gsforums

 

Join CreativeCodingClub.com

 

Hopefully this helps clear things up.

 

Carl

 

 

 

 

 

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

Just chucking a fun bonus here to bring a few more eyes to this fantastic deal.

 

Last week I came across this tweet from @kenneyNL showing this interesting contraption that "controlled" an animation.

 

 

I became instantly enamored with the playful animation.

The synchronization with the "inputs" was so perfectly executed that I had to wonder if the device was real.

I also loved the fact that the artwork was so incredibly simplistic (low detail) but conveyed so much emotion and life.

 

With all those great attributes it was just screaming at me to be rebuilt using SVG and GSAP.


I knew the rotations, color changes, face-reveal stuff would be dead-simple to animate and choreograph with GSAP, but I was very intrigued with the scattering of the little circles.

 

Attempting the "random" scatter

I needed random positioning and sizing of the circles around bob (my name for the character) but not behind him. There was no point generating circles that I couldn't see nor did I want to have 90% of circles bunched together off to one side.

 

I decided I needed a "sort-of-circular" distribution of circles around bob.

 

I'm an "avoid confusing math and trigonometry" at all costs type of programmer so I took an approach where I generated a bunch of circles with offset x positions and then used that offset in the transformOrigin and applied a rotation.

 

The approach came this demo from one of my lessons that uses basic <div> elements.

 

See the Pen Bapqwmy by snorkltv (@snorkltv) on CodePen

 

Once I got the basic layout I needed to add some randomness and needed something that was easy to revise and test so I came up with a click-driven approach so I could rapidly test my code

 

Click anywhere to generate the scatter

See the Pen 4804b10ff391109de2d70517bf9913a3 by snorkltv (@snorkltv) on CodePen

 

I was happy enough with the results so I re-wired the function to return a timeline that I could easily nest in my main animation sequence.

 

Within no time I had things spinning around, changing colors and scattering circles.

 

Finished Sequence

 

See the Pen LYLRqPy by snorkltv (@snorkltv) on CodePen

 

 

My approach of using offsets in a transformOrigin and then applying rotation works fine with DOM elements, but SVG is a bit of a pain. As you move and transform elements their transformOrigins need adjusting. Although I kind of got it how I wanted it, the code was a bit confusing and I knew I would have a tough time explaining it if I ever used this for a lesson.

 

After messing with "the wrong and easy way" for a few hours failing to get the exact results I wanted I bit the bullet and pasted in some trig code and found it much easier to tweak to my liking.

 

The scatter function basically has a loop that will:

  • initially determine evenly spaced angles 
  • then offset that angle 5 to 15 degrees in a positive or negative direction
  • then set the circle at that angle using a random radius within a certain range
  • then scale them so that only a few are big

The end result is that there's about 3 circles in each quadrant that aren't too close to each other. 

 

After the circles are all positioned an animation is added to a timeline that shrinks them and moves them randomly.

 

Time break-down for complete project

  • 1hr artwork prep
  • 2hr scatter experiments
  • 0.5 hours building out initial sequence
  • 2hr additional tweaking and testing
  • 0.5 convert scatter to trig-based approached
  • 1hr more tweaking of everything

Although I have to admit it did take more time than I initially thought, I had so much fun along the way.

 

GreenSock's timelines make it so easy to get the exact choreography I wanted.

GSDevTools was invaluable when it comes to testing each part. I love scrubbing slowly to see exactly how things are positioned and how they animate.

 

Being that I'm always focusing on new lessons for my students every week it's rare that I animate something like this just for fun.

 

I'd encourage you to find some fun small animation in the wild and try to replicate it. It's a fantastic way to learn and keep yourself fresh.

 

If you have absolutely no idea how to build a javascript animation sequence like this check out my courses and my special deal above. My training is specifically designed to guide you through the best parts of the GSAP API and help you build fun stuff like this. 

 

Lastly, big thanks to KenneyNL for the inspiration. Check out his twitter profile and give him a follow.

 

He creates loads of free game assets that look amazing.

 

  • Like 5
Link to comment
Share on other sites

How fun, @Carl! Thanks for sharing the adventure (and results).

 

Fantastic deal for Club GreenSock members to pounce on too. I hope lots of them take advantage of this!

  • Thanks 1
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.

×