Hi all.
Using hover method, I am trying to show an icon that shows which repo a specific portfolio is stored (e.g CodePen, GitHub). The user will hover over the “portfolio caption”, and an image will appear on the screen.
The hover is working: When the mouse is in, I add a class changing the background colour and add an element html(’’).
On the other hand, when I leave the portfolio caption, I am not able to remove the element created previously.
It might me a bit confused but it was the only solution I found at the moment.
I noticed a couple of typos. On line 39, you’ve got a semicolon that’s breaking your function chain. Also, the class in removeClass has an extra o in it, portfolio-caption-hoover. Fixing those two things made the function behave as expected.
That’s correct. I just fixed these typos. Thanks.
The main problem is still about the .remove(‘i’) that’ s not working (line 41). It was created in the previous function (line 33).
I want to remove this element, then the caption will be the same format that it was before the hover happen.