I’m relatively new to CSS so take this as you will. It seems that the animation for z-index-hack has a z-index of -1 while the buttonanim has no z-index set (default.) Try adding a -1 z-index to the buttonanim as well. Let me know if that fixes the issue!