Jump to content
Search Community

Fireworks WIP

Guest Pusher
Moderator Tag

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

Hi there,


Still a newbie to Greensock and noticing how much of a newbie every hour.


I was hoping to turn this particle emitter to more of a explosion burst effect like you would see with a firework. After 2 hours of playing i'm not really getting anywhere. Can someone tell me if an emitter is right for this?





See the Pen GpjMqZ by phillip_vale (@phillip_vale) on CodePen

Link to comment
Share on other sites

Hi Diaco,


Sorry i'm not sure what i am fixing? :)


I just found the tidy button so now that line looks like this...

for (var i = dotQuantity - 1; i >= 0; i--) {
  dot = document.createElement("div");
  dot.className = "dot";
  TweenMax.set(dot, {
    xPercent: -50,
    yPercent: -50,
    force3D: true
  dotPool[i] = dot;
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...