I am attempting to create a button with an animation inside that includes both text and the animation itself. Currently, the animation (switching from png to gif) only works when I hover my mouse over a specific area of the button, rather than the entire button. I need assistance with implementing the correct event listeners for this functionality. One - When hovering over the button, the image should change to a gif and then revert back to the original state when the mouse is removed. Two - When hovering over the image itself, it should change to a gif and then revert back to its original state when the mouse is removed.
While I understand the concept behind how this should work, I'm struggling with the actual code implementation. Any help would be greatly appreciated!
Thank you!