Issue working with gsap 3
jamesopti opened this issue · comments
I'm trying to implement the Image Transition example in a React Codesandbox using GSAP 3 and installing all packages from NPM.
After converting the appropriate chunks of code per their migration guidelines, I'm unable to get any images to render.
Here is the link to the sandbox - https://codesandbox.io/s/amazing-lamport-k5sce?file=/src/imageTransition.tsx
Any ideas what's wrong?
The Slide.setImage
call was erroring at first, so I updated the code to do this after reading through this issue:
var texture = new THREE.Texture();
...
material.uniforms.map.value = texture;
material.map = texture;
Looks like the example is broken here too (but because of something different than mine)
http://three-bas-examples.surge.sh/examples/image_transition/