So another component I came across which we do not currently have in UD was this:- https://react-scroll-up-button.com/
So I built it with the default scroll button as I liked that the best, and have now published this on the powershell gallery which will in-turn put this on the UD marketplace. Here is my demo on UD:-
I think I used a fab button once, but couldnt get it working right…sadly I do not see a prop for positioning this…however just having a quick butchers at the link where I got this from if you choose custom that is not placed at the bottom…I didn’t add a class name to this, but from looking at the custom scrollup looks like you could position this component using CSS
Does basically the same as your javascript snippet, but with animation. (see the actual code here:
)
Performancewise they should be identical, however the Select-UDElement is more userfriendly for the non-javascript enthusiasts here.
Either that, or preferably utilize @psDevUK’s fancy solution.
I’ve heard rumors of a redesign of the floating action button in admin mode (haven’t actually seen it myself, i just remember reading something in a PR), which would make New-UDScrollUP pretty fancy lookin’.