Pure CSS trick to create a blurred backdrop
2 min read
One of the beauties of CSS is that you can apply significant effects to your elements without having to use image editing tools such as Photoshop.
In this short tutorial, we'll see how to create an appealing design by setting a blurred background for a text.
As always, I'm using DoTenX(dotenx.com) UI-builder to build the page and immediately get the result and publish it. You can create your free account as well if you haven't done already and create unlimited projects/pages.
Remember, when you create a project on DoTenX switch to advanced mode as we want to have full control over the page styles.
Box element to the page which renders a div in our page.
Go to the css properties in the styles tab and set the following propery-values:
\ Image from Freepik.com*
The focus of this post is not
Flexbox, but if you want to learn more about Flexbox, take a look at this post: Learn CSS layouts by example - Flex.
Add another Box to our flex container and add these styles to the element:
This is what we've created so far:
Text to the smaller Box that we just created and set its css properties as follows:
font-family: Arial Black
As you can see the text is not perfectly readable. All the magic happens in step 5.
Add the following css property to the smaller box with white border:
- backdrop-filter: blur(5px)
And this is the end result:
As you can see the end result looks much better with a very simple CSS property.
You can find the published result here.
Don't forget to create your FREE account at dotenx.com and you can Redeem this code (if you're quick enough before it ends) to even get more resources: