you might wish to check out this dependency:
If you want to do it from scratch - it will require editing the css to change the hover behaviour for buttons since this isn’t an event that anvil supports in python. https://www.w3schools.com/cssref/sel_hover.asp