Blur background on modal pop-up

24 Apr 2023
blur background pop-up

This code allows you to blur the background when someone triggers a modal, it helps put focus on the modal and not the background. The blur strength can be adjusted as needed.

Add this to the main style sheet. {
backdrop-filter: blur(5px);

Was this article helpful?



Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy