Replies: 2 comments 5 replies
-
I'd guess it's because HTML attributes use kabob-case: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I try to create the js function to start and stop 'auto-rotate' attribute after click on button. I'm not sure but I used 'toogle' for this purpose but it still does not work. How to correct the below code to make it work properly?
let isOff = true; const modelViewer = document.querySelector('#orbit-demo'); $("#autorotation").click(() => modelViewer.toggle(modelViewer.auto-rotate, isOff = !isOff))
#autorotation - it's button ID
Thank you for any support.
Beta Was this translation helpful? Give feedback.
All reactions