Not the best with jquery, can someone suggest a general approach for what i am trying to achieve please? I have a grid of photos, and when they are clicked on, an opaque overlay will be animated on top of the entire picture, the overlay will contain some dynamically set text. I have the images, and the onclick handler working, just trying to figure out the best way to apply the overlay. thanks
Share
Not very pretty semantically, but should get the job done :
Let’s say your imgs are 200×200.
// etc…
Then, the CSS :
This is a pure CSS solution, without animation, works for users with Javascript of.
If you want then to animate it using Jquery :
then, on click/mouseover