Div to Fullscreen on Click

Worried about licensing?

Do you have right license for your templates and fonts?

Head over to our partner Envato Elements and unlock unlimited downloads of over 50 million digital assets with full commercial licensing.

  • 50+ Million Assets with Unlimited Downloads
  • Templates, Addons, Fonts, Footage, Photos, Brushes, Presets & More
  • Full Commercial licensing for client work

Get ultimate peace of mind!

Get Started Now
Image: Div to Fullscreen on Click GIF

This snippet designed by Colin Lohner give you multiple divs that which clicked on will expand to fill up the screen. Clicking it again will collapse that into the original div.

If you are having trouble with the pen, try the archived copy on GitHub

Div to Fullscreen Snippet

See the Pen Fullscreen Expanding Div by Colin Lohner (@colinlohner) on CodePen.0

Posted by:Saijo George

Digital Marketer with a strong focus on technical SEO and design. One of the top 100 makers on Producthunt, co-organizer of the SEO Meetup in Melbourne, an instructor at General Assembly. Worked with brands like Envato, AEON. Currently the SEO Strategy Director at Supple.