Jump to content
Search Community

3D Space Effect

sorciereus 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

40 minutes ago, sorciereus said:

Is it possible to create this effect but instead of the particle squares, use a series of png images on transparent backgrounds? 

Of course! You can simply change the part about document.createElement('div'); to document.createElement('img'); and then set the src for that element.

 

But it wouldn't be very performant to be moving around that many images. It would be best to use the <canvas> element to animate that many images because it performs a lot better for this sort of thing. Our own @OSUblake has a lot of GSAP + canvas experiments, especially with an additional library called Pixi.js. You might combine the demos that in the post below with the one that you linked to.

 

  • Like 3
Link to comment
Share on other sites

Thanks alot Zach - also I was checking out Three.js as an option too - though I think this is all over kill for what I need to accomplish - just the same same I appreciate the response - I've been working alot in After Effects and my coding is a tad rusty! 

 

Your solution makes perfect sense, thanks. 

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Welcome to the forums, @devstar625. Did you have a GSAP-specific question? We'd love to help with those but we're not in a position to offer general "how do I build a whole effect" kind of tutorials. There is already a CodePen demo at the top of this thread with code that works, so hopefully that's a good jumping off point for you. 

 

If you still need help, please be specific and if possible, provide a minimal demo (like a CodePen). 

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