Script does not work with hype elements and classes

Hey there, I am working with hype since a few weeks.
I don't get my custom cursor script running with hype elements.
Adding an element by html to the page works and gives all the functions I need.
How do I get this script to work with hype elemnts and classes?

Here I have added my file: (10.3 KB)
:rotating_light: Please note that we can only address JavaScript questions and issues in the context of Tumult Hype, so please attach a Hype document so others can dig into what you have so far.

you'd add code that corresponds to hypeelements onsceneload ... not in the headsection without connection to a hypeevent

if you want to style hypeelemnts with custom css, it's best to uncheck 'protect from external styles'

1 Like

Thanks for your response, unchecking "protect from external styles" does not seem to solve the problem. Do you have any other suggestion?

There are multiple ways to customize the cursor, some are native to Hype, while others require CSS. None require jQuery and I would recommend against using it unless absolutely necessary.

Here is a small sample program I wrote that demonstrates how to implement different cursor types. (66.6 KB)

1 Like