css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

This widget functions as an accordion with collapsible content on small screens, and a lightbox on larger screens.

This Pen is a fork of Brad Frost's Pen Conditional Lightbox for Responsive Design.

Comments

  1. I opened the accordion, then resized past the media query and the image was stuck open. I'm wondering if you could add something in the JavaScript to close the image if during resize it expands beyond the media query. Just a thought.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...
Loading...