My aim is to devise a unique rollover text presentation contraption. As the user hovers over the image, the image will gradually fade in opacity and then reveal some accompanying text. Once the user moves out of the image, it reverts back to its original state with full opacity while the text disappears.
Upon testing an early iteration of my creation, I encountered an issue where the text did not display when hovering over the picture. After delving into the debugger, I was met with the following error:
Uncaught TypeError: Object [object Object] has no method 'display'
I have replicated this minuscule project on JSFiddle. Any assistance in rectifying the error and ensuring the text appears would be greatly appreciated. Thank you!