Skip to content

Add an animation toggle parameter to the setCameraOrbit method #68

@winter-tech

Description

@winter-tech

Image

"I checked the model-viewer documentation and found that there is a method to jump to the target camera view instantly without animation. Please add a toggle to control this behavior. Thank you."

const modelViewer = document.querySelector('model-viewer');
modelViewer.cameraOrbit = '45deg 75deg 2.5m';
modelViewer.cameraTarget = '0m 0m 0m';
modelViewer.jumpCameraToGoal();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions