Skip to content

How to animate using <Play> ? #233

@Abhimanyu-Jha

Description

@Abhimanyu-Jha

Hi there!
I am trying to use Play to animate certain elements in my code like

  • animating the camera position
  • animating a shpere surface's rangeX or rangeY
  • animating a surface's expr attribute
  • (etc.)

In the vanilla JS implementation (using mathbox.js) I was able to pull these things off by using view.play({...}) which successfully animated the target specified as "#targetID".

In the react implementation however, when i try to do this, I get errors like
Error: <area#sphere-data /> - Can't set computed property x.span.range={0,6.283185307179586}

Any ideas why this is happening?

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