Using querySelector and querySelectorAll to fetch elements

Thanks for fast reply.

The class name seems not be included in hypeDocument.getElementProperty of Hype API.

hypeDocument.getElementProperty(element, propertyName)#

Gets a property of an element based on the Hype runtime’s knowledge. The element argument must be a DOM element, generally obtained by the hypeDocument.getElementById() function.

Valid property names (quotes required):

'top'
'left'
'width'
'height'
'rotateZ'
'scaleX'
'scaleY'
'opacity'
'z-index'

But this thread is great idea to change class of elements dynamically:

I suppose it would be great if changing class is triggered during scrolling a scene/page/document by Intersection Observer or may MutationObserver function? so that class works globally.

Have no idea yet, seems I still need to study more, and thanks anyway.