CREATING GLASSMORPHIC ELEMENTS IN CSS

                                 


NEW TREND OF 2021

2020 has been all about problems, but the silver lining in 2020 is all about innovative designs like typography, 3D realism, metallic textures, geometric designs, and liquid patterns.

In 2020, we saw neuromorphic  design, but it is criticized by many, but then we saw -

 Michał Malewicz, the creator of the neumorphism style, wrote about something fresh and good-looking — Glassmorphism style.


The characteristics features of Glassmorphism are :-

1) Transparency (frosted glass)

2)Vivid or pastel colors

3) Light border


Glassmorphism — The CSS Way




To create the Glassmorphism effect, you should use backdrop-filter: blur().

<div class="basic">
<div class="blur"></div>
</div>
.basic {
width: 200px;
height: 200px;
background: rgba(255,255,255,0.4);
position: relative;
}
.blur {
position: absolute;
bottom: 25px;
right: 162px;
width: 200px;
height: 200px;
background: rgba(255,255,255,0.4);
backdrop-filter: blur(5px);
}
two squares on a screen that have had the backdrop-filter: blur() property applied to them
Basic component
<div class="basic">
<div class="blur"></div>
</div>
.basic {
width: 200px;
height: 200px;
background: rgba(255,255,255,0.4);
position: relative;
}
.blur {
position: absolute;
bottom: 25px;
right: 162px;
width: 200px;
height: 200px;
background: rgba(255,255,255,0.4);
backdrop-filter: blur(10px);
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.2);
}
two squares that have had the backdrop-filter: blur() property applied to them, one with rounded corners and white border
Rounded borders and white border

Glassmorphism 2021

Browser Compatibility

ABOUT US :

Responsive Web design is the approach that suggests that design and development should respond to the user’s behavior and environment based on screen size, platform and orientation.

The practice consists of a mix of flexible grids and layouts, images and an intelligent use of CSS media queries. As the user switches from their laptop to iPad, the website should automatically switch to accommodate for resolution, image size and scripting abilities. In other words, the website should have the technology to automatically respond to the user’s preferences.

KEYWORDS :

CSS media queries

design and development

SOURCE : 

https://medium.com/better-programming/a-short-guide-on-how-to-create-glassmorphic-elements-in-pure-css-4d52f81089ab




Comments

Popular posts from this blog

Ways SEO Can Help Local Businesses To Withstand Pandemic

Marketing In 2021