Jump to content
Search Community

Diaco's FireFly CodePen

celli test
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

I absolutely LOVE Diaco's FireFly codePen, how the elements organically float around. I forked it, changed a few things and I was experimenting with it, and I noticed that if I resize the window the fireFly animation still stays constrained to the original viewPort width and height (innerWidth, innerHeight)--I tried adding some resize functions, but I couldn't get it to work... is there a way that on browser resize, the available fire-flies would now move around to occupy the new browser window space/size ?

See the Pen xZgpvN by celli (@celli) on CodePen

Link to comment
Share on other sites

yes, that's interesting--I like the way they fill the space when we resize the window, and I see the delay, but can I speed up the delay so that they fill the space right away, or with a very slight delay ? I don't see where the delay is coming from right now...

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