cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to create a class in javascript to trigger CSS animation?

HarshSalvi97
5-Regular Member

How to create a class in javascript to trigger CSS animation?

 
1 REPLY 1

Hello HarshSalvi97,

 

I suppose that you would achieve a thing like explained here :

https://stackoverflow.com/questions/44846614/trigger-css-animations-in-javascript

 

The main problem in Javascript is to have the right GetElement.

In Vuforia Studio, GetElement can be used.

In this post, we can found more details about how to use it :

https://community.ptc.com/t5/Vuforia-Studio/document-getElementById-only-works-for-3D-objects-not-2D/m-p/558536#M3577

 

Best regards,

Samuel

Top Tags