Of course being a tooltip it should only appear on hover over the project image and and the whole tooltip div (including text) should track to the mouse position in the viewport. It would disappear between project images.
I would have thought the effect would be achievable with interactions (hide on load, show on hover), but new interactions don’t support collection items yet and how would I get it to track to the mouse cursor?
Oh, wait a second I’m tired I forgot that this is not the ALT that makes the tooltip but the TITLE… no problem, the code looks like this (and let the ALT so you have clean code, well accessible)
Awesome, that makes sense for getting the tooltip text in from the collection item.
But, how can I target the tooltip so that I can style it?
Have a look at my image above:
There are two text elements that need to be styled that make up the tooltip, and then I want to change the mouse cursor to an image—in this case a play button.