Examples for Shapediver Camera Animation?

Hi Shapediver community!
I am interested in camera animation using the Shapediver API. In particular I think about camera animation based on scroll events. Maybe animateAsync could work for that.
Are there any public examples to get an impression about the functionality?

You can change camera position with api.scene.camera.updateAsync(), more in the API reference.

This code example shows (amongst other things) how to build a camera and then animate it when a material selection button is clicked, look for applyOption function at the end of the JavaScript section.

1 Like

Thank you! The example helps to understand your API. Do you basically use tween.js for the animation?

Yes, we use a custom version of tween.js.

1 Like