![]() |
VOOZH | about |
In this article, we will implement a frosted glass effect using the bootstrap 4 card class. The below image is the final output that you will get as the final result of this article.
Approach:
1. Styling the body:
Let's first set the background for your webpage. Write the below code under your head tag inside your <style> tag. If you have already set your background property (which you would have) then skip to the next section. If not, here you go.
2. Frost glass card:
Under the style tag, use the following code,
So what do we have here,
Note: There have been issues with Mozilla's browser Firefox and in cases, the backdrop-filter doesn't work properly, chrome and edge work fine.
3. <div> in body:
Final Code:
Output:
👁 Image