How can i do an overlay effect ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i do an overlay effect ?

Hello i want to do an overlay effect around my menu like when you click on the menu icon on google on the left corner and a menu appears and the rest of the content is a litte bit grey.

15th Dec 2018, 4:22 PM
Chris
2 Answers
+ 2
That would be called a modal. W3 schools has a great example for how to code one using JS and CSS. Just search for "W3 modal" and you should be able to find one that isn't for pictures. If that wasn't what you were thinking, let me know. You can also take a look at my code - I use modals for the details button and the search function as well: https://code.sololearn.com/Wh117ebi576o/?ref=app
15th Dec 2018, 4:26 PM
Zeke Williams
Zeke Williams - avatar
0
Thank you but can i do it without an library ?
15th Dec 2018, 4:30 PM
Chris