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
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
Not very pretty semantically, but should get the job done : Let's say your imgs are 200x200.
// 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
Check this website may be that help you. http://flowplayer.org/tools/overlay/index.html