Jump to content
Search Community

rotation of background image as in 3d space

dzimidula test
Moderator Tag

Go to solution Solved by Carl,

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

  • Solution

That isn't really a background image, its a large <canvas> element. It appears that site is loading three.js which is most likely responsible for any 3D or WebGL content on that site. 

 

Three.js is an extremely powerful and fast 3d renderer. The good news is that you can absolutely use GSAP to animate properties of Three.js objects.

Here are some Three.js examples:

 

http://threejs.org/examples/#webgl_animation_cloth

 

Here is a nice example of GSAP animating tiles made with Three.js

https://codepen.io/noeldelgado/pen/QwWRwg?editors=0010

 

Frankly, I'm really not sure how to tell you to replicate the example you provided, however it's totally possible to move an image or rotate a <div> in 3D space based on mouse movement. Here is an example: http://fiddle.jshell.net/Zuriel/qGcd9/show/

  • Like 3
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...