I wanted to showcase the projects I have worked on. I already have an image on my homepage under the Portfolio section that directs users to that specific project. I wanted to have the image be dimmed when the cursor has hovered over the image and I wanted to be able to post text on the image. But I only want the text to be shown when the cursor is hovered over the image, so users can know which project they are clicking on.
The Problem I am having is that I do not know how to perfectly center and place text over an image that would only appear when the cursor hovers over it.
Currently, I have the image dim when the cursor hovers over the image. I also have managed to place text over the image, but the text is showing on image at all times. Also when the cursor hovers over the image, the image dims like its supposed to, but the text over the image dims as well.
Great! You could also add a 200ms transition to the background colour on the second div block, like you have done for the 200ms opacity on the link block. (or try 300/400ms) smoooooth