当前位置:网站首页>Glassmorphism design style
Glassmorphism design style
2022-08-01 10:02:00 【ten nine eight seven】
前言
特征
The frosted glass mimics the plastic material(Bump texture,凸显层次感),This new visual style pays more attention to vertical spaceZ轴的使用:
- 透明感(Use background blur/Gaussian blur frosted glass effect)
- Objects float in space,The sense of hierarchy is expressed through the contextual relationship
- Vibrant color sense,Blur transparency is more prominent
- Subtle handling of the edges of translucent objects,A delicate frame is used to express the glass texture
This is a typical feature of focusing on a sense of space,Means this style helps the user to establish hierarchy and depth in the interface.The user can see the hierarchical relationship between objects,Which layer is above which layer,Just like real glass in space.
实例
Glass mimetic style design:
Glass mimetic style icon:
Web page header:
不足
The simulated effect of frosted glass is not well applied to online products.It doesn't work with buttons or switches(These important interface elements should have high contrast,更加清晰明确),The blur effect should also pay attention to the scale,Excessive use of blur effects on the screen,会使整个 UI Poor readability for some users,It also makes the page look dirty.
The realization of glass mimicry
The effect itself is easy,But there are two points to consider.As with any card-based layout,第一个是-Objects are closer to us,The more light it attracts.在这种情况下,This means it will be more transparent.
The basis of the whole effect is the shadow、A combination of transparency and background blur,Only one transparent layer can be used for this style,or multiple transparent layers,But when at least two translucent layers appear on a rather busy colored background,It is the most prominent and visible.
设置透明度
无论如何,You can't make the whole shape transparent,Just make it's fill transparent.Most design tools are populated as 100%,When the object's transparency is low,Background blur will not work.
在上面的示例中,The background blur values are exactly the same,为8,But the images look completely different.When the fill opacity is 100%时,It doesn't matter how low the opacity of the object is.We simply don't get the blurry background we want.
Choose an appropriate background
The background plays an important role in this effect.Not too simple or too monotonous,Otherwise, the effect will not be seen,They also can't be too complicated.
这可能就是AppleChoose a colored background asMac OS Big SurThe reason for the default wallpaper.When a blurry transparent surface is on top of it,Those easily discernible tonal differences are also easy to see. When selecting a background,Make sure it has enough shade difference,to make the glass effect really visible.
细节
The last thing you can try is adding to the shape1px内边框,and has a certain degree of transparency.It simulates glass edges,Shapes can be made to stand out from the background. Despite the elements of this style(such as blurred backgrounds)已经存在了很多年,But it is becoming more and more popular,因此,There are still plenty of cool creative effects to explore here.
The image on the left has a semi-transparent border,The image on the right is borderless.
辅助功能
就像Neumorphism一样,This style may not be like the defaultMaterial DesignSo easy to use. NeumorphismThe main rules of . can also be translated here-If you have a good functional hierarchy,then the element on the screen should work without the background,This ensures that people with visual impairments can still understandUI.
This is a bad example of the same as Neomorph,It abuses the effect on every possible screen element.这样,Some users have almost no access to the wholeUI,It also makes it boring and primitive at the same time. Only if these transparency effects are only decorative,rather than an integral part of the experience,才会发生这种情况.They should be avoided for buttons or toggles(These important objects should always have greater contrast),But you can use it for card background. Just make sure the inside of the card has enough contrast and proper spacing to define the hierarchy,and visually all related objects“分组”.
Here's a better example-The card has a well-defined structure,So even the glass background is completely removed,Its contents can also be used normally.这是一个简单的示例-Color contrast can still be improved.
CSSRealize glass mimicry
.glass {
height: 399px;
width: 199px;
background: rgba( 255, 255, 255, 0.25 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 5px );
-webkit-backdrop-filter: blur( 5px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
}
.container{
height: 100vh;
background: linear-gradient(45deg, #FC466B, #3F5EFB);
display: flex;
align-items: center;
justify-content: center;
}<div class="container">
<div class="glass"/>
</div>后记
Frosted glass mimicry(Glassmorphism)是Michal MalewiczA new design style proposed,原文发布在uxdesign:Glassmorphism in user interfaces.
Personally, I feel that this design style is not suitable for large-scale use,As well as body parts where a lot of text appears,会影响阅读.
在线生成工具:
An online generation tool for glass mimicryGlass mimetic style
边栏推荐
- 2022年7月31日--使用C#迈出第一步--使用 C# 创建具有约定、空格和注释的易读代码
- 对于小应用来讲,使用哪款数据库比较好?
- mysql login in cmd and basic operations of database and table
- net stop/start mysql80 access denied
- PerViT: 神经网络也能像人类利用外围视觉一样观察图像!
- The use of scrapy crawler framework
- 指针的介绍及应用
- STM32 personal notes - program run and fly
- 可视化——Superset安装与部署
- redis
猜你喜欢

Explain / Desc execution plan analysis

杨辉三角(c语言实现)

What's up with VS "Cannot find or open PDB file"?How to solve

STM32个人笔记-看门狗

How to implement deep copy in js?

使用ESP32驱动QMA7981读取三轴加速度(带例程)

How to ensure the consistency of database and cache data?

【无标题】

Batch大小不一定是2的n次幂!ML资深学者最新结论

DBPack SQL Tracing 功能及数据加密功能详解
随机推荐
Batch大小不一定是2的n次幂!ML资深学者最新结论
Quantify daily work metrics
什么是步进电机?40张图带你了解!
WLAN networking experiment of AC and thin AP
rpm and yum
广域铭岛入选2022年重庆市数字经济产业发展试点示范项目名单
阿里腾讯面试一二
笔记。。。。
[Software Architecture Mode] The difference between MVVM mode and MVC mode
如何解决 chrome 浏览器标签过多无法查看到标题的情况
C language game - minesweeper
玻璃拟态(Glassmorphism)设计风格
SkiaSharp 之 WPF 自绘 五环弹动球(案例版)
SAP ABAP OData 服务如何支持 $orderby (排序)操作试读版
DBPack SQL Tracing 功能及数据加密功能详解
Shell:条件测试操作
CTFshow,命令执行:web34、35、36
Manual upgrade and optimization tutorial of Lsky Pro Enterprise Edition
Google Earth Engine APP——15行代码搞定一个inspector高程监测APP
CTO strongly banning the use of the Calendar, that in what?