Skip to content

CSS Modal

  • aside has better support than dialog

  • dialog tag that's a sibling to the main content

  • blur, decrease contrast and brightness on the main when there's a de-emphasized class on the main content filter: blur(3px) contrast(0.8) brightness(0.8)
  • animation

Prevent a user from scrolling in a modal

on the body

overflow: hidden????


Last update: 2022-11-04