- 70 CSS Modal Windows
- Related Articles
- Author
- Links
- Made with
- About a code
- Modal Dialog with Backdrop Blur. Only CSS
- Author
- Links
- Made with
- About a code
- Giant Buttons
- Author
- Links
- Made with
- About a code
- Modal with Scroll and Faded Text
- Author
- Links
- Made with
- About a code
- Pop-up without JavaScript
- Author
- Links
- Made with
- About a code
- CSS Window / Modal
- Author
- Links
- Made with
- About a code
- Details Modal
- Author
- Links
- Made with
- About a code
- CSS Only Popup
- Author
- Links
- Made with
- About a code
- Cookies Popup UI Design
- Author
- Links
- Made with
- About a code
- CSS Modal Using :target Selector
- Author
- Links
- Made with
- About a code
- Pure CSS Modal — #15
- Author
- Links
- Made with
- About a code
- CSS-only Modal
- Author
- Links
- Made with
- About a code
- CSS Modals v2
- Author
- Links
- Made with
- About a code
- CSS Modal
- Author
- Links
- Made with
- About a code
- Sign Up Modal
- Author
- Links
- Made with
- About the code
- CSS Only Popup
- Author
- Links
- Made with
- About the code
- Material UI Popup
- Author
- Links
- Made with
- About the code
- Modal
- Author
- Links
- Made with
- About the code
- Login Modal
- Author
- Links
- Made with
- About the code
- Fancy Pop-Up
- Author
- Links
- Made with
- About the code
- Pop-up Design
- Author
- Links
- Made with
- About the code
- Folding Modal
- Author
- Links
- Made with
- About the code
- CSS Popup
- Author
- Links
- Made with
- About the code
- Super Simple Easy Modal
- Author
- Links
- Made with
- About the code
- CSS Only Popup Animation
- Author
- Links
- Made with
- About the code
- PopUp Overlay Animation
- Author
- Links
- Made with
- About the code
- Animate Modal Out From Trigger
- Author
- Links
- Made with
- About the code
- Super Easy Totally Cool Modal
- Author
- Links
- Made with
- About the code
- Move Modal In On Path
- Author
- Links
- Made with
- About the code
- An Onboarding Modal With Vue.js
- React Modal UI
- HTML5 Dialog Element
- JS Simple Modal Box Snippet
- Shifting Material Button Modal
- Responsive Modal Design
- ModalX Animated Modal
- Flat Modal Window
- Responsive Modal
- Simplistic Dialog
- No JS Modal Popup Window
- Another Modal Box
- CSS Only Modal
- Flappy Dialog
- Modal With Clip-Path
- Modal Window
- Morph Button To Modal
- Modal Popup
- Origami Dialog Effect
- Author
- Links
- Made with
- About the code
- Popup/Overlay
- Modal Interaction With Genie Effect
- Simple, Flexible And Responsive Flexbox-Based Modal
- Animated Modal Box
- Modal Dialog
- Modal Animation
- 3D Dialog
- Basic CSS Modal
- Modal Window Destroy Concept
- Prompt Dialog With Background Blur
- Modal Window
- Pure CSS Modal
- Pure CSS Modal + Slider
- Morphing Modal Window
- Modal Animation Physics
- Swing Out Modal
- Push Modal Idea
- Pop-Up With Blurred Background Animation
- Simple Dialog Effects
- CSS Only Line Animated Modal
- Pure CSS Animated Modals
- Draggable Translucent Modal
- Simple Confirmation Popup
70 CSS Modal Windows
Collection of HTML and CSS modal window code examples from CodePen, GitHub, and other resources. Update of February 2021 collection. Six new items.
Related Articles
Author
Links
Made with
About a code
Modal Dialog with Backdrop Blur. Only CSS
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Giant Buttons
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Modal with Scroll and Faded Text
A simple way to create a modal that never exceed the viewport’s height and allows for scroll inside.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Pop-up without JavaScript
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS Window / Modal
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Details Modal
By nesting a modal inside a details element it is automaticly shown when the details is opened. And by nesting the overlay inside the summary element, we can use that to trigger a close.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS Only Popup
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Cookies Popup UI Design
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS Modal Using :target Selector
This example shows how to open a modal window using HTML and CSS only.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Pure CSS Modal — #15
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS-only Modal
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS Modals v2
The second version of my previous pen(CSS Modal). In this one, I showed that there are three different modals with their own unique ids and I am using different links to open and close them.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
CSS Modal
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Sign Up Modal
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
CSS Only Popup
Simple popup in HTML and CSS.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Material UI Popup
Easing is not easy! However, with the right easing from the Material Design guidelines, you get punchy and snappy animations.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Modal
Basic CSS-only modal window.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Login Modal
Modal login form in HTML, CSS and JavaScript.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Fancy Pop-Up
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Pop-up Design
Pure CSS pop-up design with animation.
Author
Links
Made with
About the code
Folding Modal
Folding modal window with HTML, CSS and JS.
Author
Links
Made with
About the code
CSS Popup
Author
Links
Made with
About the code
Super Simple Easy Modal
Super simple easy modal with ES6.
Author
Links
Made with
About the code
CSS Only Popup Animation
HTML and CSS popup animation.
Author
Links
Made with
About the code
PopUp Overlay Animation
Popup overlay using HTML and CSS and JavaScript.
Author
Links
Made with
About the code
Animate Modal Out From Trigger
Animate modal out from trigger with popmotion.js.
Author
Links
Made with
About the code
Super Easy Totally Cool Modal
Only CSS super easy totally cool modal window.
Author
Links
Made with
About the code
Move Modal In On Path
Move modal windows in on path with HTML, CSS and JavaScript.
Author
Links
Made with
About the code
An Onboarding Modal With Vue.js
Step through on-boarding (or whatever, really) screens in a modal horizontally or vertically.
React Modal UI
Modal UI with HTML, CSS and React.js.
Made by Mike
February 8, 2017
HTML5 Dialog Element
Messing around with HTML5’s dialog element.
Made by Andreas J. Virkus
January 31, 2017
JS Simple Modal Box Snippet
Simple modal box snippet in HTML, CSS and JavaScript.
Made by Tobias Bogliolo
November 5, 2016
Shifting Material Button Modal
Two call-to-action buttons that give context to your modals in a Material Design fashion.
Made by Ettrics
October 8, 2016
Responsive Modal Design
Material Design inspired modals. No jQuery required. Responsive.
Made by Ettrics
October 8, 2016
ModalX Animated Modal
Animated modal window with HTML, CSS and JavaScript.
Made by Christopher Bicudo
July 28, 2016
Flat Modal Window
Flat modal window with HTML, CSS and JavaScript.
Made by Dronca Raul
July 15, 2016
Responsive Modal
Simple responsive modal with HTML, CSS and JavaScript.
Made by Nainoa Shizuru
July 11, 2016
Simplistic Dialog
Simplistic dialog with HTML, CSS and JavaScript.
Made by Tristan White
July 9, 2016
No JS Modal Popup Window
Using the ol’ label, checkbox trick to launch a modal window. All CSS. No JavaScript required.
Made by David Conner
July 6, 2016
Another Modal Box
Yet another modal box!
Made by Valentine
June 29, 2016
CSS Only Modal
A challenge to create a confirm modal without any JavaScript. Probably not usable in production, but still it works.
Made by Kristoffer Östlund
May 1, 2016
Flappy Dialog
HTML, CSS and JavaScript flappy dialog.
Made by Alex
April 15, 2016
Modal With Clip-Path
Modal that animate opens with animation clip-path. Observe clip-path aren’t hardware accelerated or works in IE anything.
Made by Jonas Sandstedt
April 14, 2016
Modal Window
Modal window with HTML, CSS and JavaScript.
Made by Ophelia Fournier-Laflamme
April 14, 2016
Morph Button To Modal
Morph button to modal with React.js
Made by Kyle J. Kress
March 23, 2016
Modal Popup
HTML, CSS and JavaScript modal window.
Made by Nastasia
March 23, 2016
Origami Dialog Effect
The idea is to replace the path of the button container into origami path step by step.
Made by Bhakti Al Akbar
March 4, 2016
Author
Links
Made with
About the code
Popup/Overlay
Popup/Overlay window in HTMl, CSS and JS.
Modal Interaction With Genie Effect
Inspired by Mac OS X minimize interaction. Built with SVG and Greensock plugin.
Made by Bhakti Al Akbar
March 4, 2016
Simple, Flexible And Responsive Flexbox-Based Modal
Flexbox modal example. It’s responsive, easy to integrate and extend, and passes content anattributes. Was looking for a simple approach that was not reliant on any library. Straight CSS/jQuery.
Made by Bryan Chalker
March 1, 2016
Animated Modal Box
HTML, CSS and JavaScript animated modal box.
Made by lefoy
February 21, 2016
Modal Dialog
Simple modal window equipped with smooth CSS3 transitions. Commonly used for viewing annoyingly important content upon visiting a website.
Made by David Fitas
January 21, 2016
Modal Animation
Modal animation with HTML, CSS and JavaScript.
Made by Giana
January 16, 2016
3D Dialog
3D modal dialog window in HTML/CSS and JavaScript.
Made by Geza Dombi
December 2, 2015
Basic CSS Modal
Basic modal window with HTML and CSS.
Made by Timothy Long
December 2, 2015
Modal Window Destroy Concept
Modal window destroy concept with HTML, CSS and JavaScript.
Made by LegoMushroom
November 24, 2015
Prompt Dialog With Background Blur
Purely CSS-driven popup dialog with a soothing transition animation and background blur.
Made by Tuomas Hatakka
September 28, 2015
Modal Window
Modal window with HTML, CSS and JavaScript.
Made by Philipp Rappold
August 2, 2015
Pure CSS Modal
HTML and CSS modal window.
Made by Mark Holmes
June 25, 2015
Pure CSS Modal + Slider
Responsive modal dialog using css only, including sliding/carousel content inside the modal.
Made by Marvin Orendain
June 23, 2015
Morphing Modal Window
A call-to-action button that animates and turns into a full-size modal window. The final result is powered by a combination of CSS transition and transformations, jQuery and Velocity.js.
Made by CodyHouse
March 12, 2015
Modal Animation Physics
Messing around with keyframe/transition physics for a modal. Mostly focused on the timing between the overlay, modal container, and modal content to try to make the whole event look more organic. Believe it or not, inspired by the menu pop-ups in Super Mario 3D.
Made by Tey Tag
February 18, 2015
Swing Out Modal
Fun little modal concept with HTML and CSS.
Made by Michael Smith
February 17, 2015
Push Modal Idea
Neat little way to give your page some depth.
Made by Short
February 4, 2015
Pop-Up With Blurred Background Animation
Here’s a popup that appears while blurring out the body underneath. click the ‘X’ close on the popup and the blur transition back while the popup fades off. Suitable for sites that may want a nag (perhaps for donation or subscription services) or could be re-purposed as a general modal or lightbox. Uses CSS3 Filter (for blur) and CSS3 Animation for blur transitions. The jQuery is minimal in this iteration, simply used to fade in the pop-up and add and remove the CSS3 classes for blurring.
Made by Benjamin Dalton
December 31, 2014
Simple Dialog Effects
Simple dialog effects in HTML, CSS and JavaScript.
Made by dodozhang21
December 29, 2014
CSS Only Line Animated Modal
Modal draws then fades in using SVG & CSS animation.
Made by Tom
December 22, 2014
Pure CSS Animated Modals
Animated slide down modal with browser back support. No JS animated slide down modal with tabs. No JS.
Made by Tom
December 8, 2014
Draggable Translucent Modal
Draggable translucent modal with HTML, CSS and JavaScript.
Made by Jesse Couch
September 24, 2014
Simple Confirmation Popup
Simple responsive confirmation dialog box, with a subtle CSS3 entry animation.
Made by Adventures in Missions
July 2, 2014