treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Background darker when watching YouTube video

  • Hi, I was planning on implementing a little video library on a website I am making.

    The page should have some icons of videos and when clicking on one, that specific video should pop up in sort of like a frame that spans over the entire web browser window and makes the background darker with a bit of transparency. You might have seen this function on many websites before, for example when viewing a video or photo in a message on Facebook.

    Now I have absolutely no idea how to do this so if you could teach me some tricks that I could use to accomplish this, that would be great!

    Also if there was anything wrong with this topic, I am sorry. It's my first thread here and I don't really know anything about this site, please tell me if I did something wrong :)

    // Simon

  • Hi Simon, for any galleries (including videos) I use PrettyPhoto. It's fairly simple to set up and you can specify if you want an overlay on the page when viewing videos/how transparent it is etc.

    Hope that's a help :)

  • Thank you David! That was exactly what I was looking for :)