Hmm, still not really clear…
But as a test to get a floating button that always floats back to it’s position after a scroll up or down, I created a function and added an scene onload action to run the javascript function.
var actioNButton = hypeDocument.getElementById('actioNButton');
$(document).ready(function(){
window.addEventListener("scroll", function() {
hypeDocument.setElementProperty(tButton, 'top', $(window).scrollTop() +100, 1.0, 'easeinout')
});
});
Scroll test.hype.zip (49.8 KB)
This worked surprising well…