当前位置:网站首页>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
边栏推荐
- Parsing MySQL Databases: "SQL Optimization" vs. "Index Optimization"
- 对于小应用来讲,使用哪款数据库比较好?
- 解决new Thread().Start导致高并发CPU 100%的问题
- WTM:ASP.NET Core快速开发利器!
- Visualization - Superset installation and deployment
- PerViT: 神经网络也能像人类利用外围视觉一样观察图像!
- 7. SAP ABAP OData 服务如何支持 $orderby (排序)操作
- 线上问题排查常用命令,总结太全了,建议收藏!!
- Custom Types - Enums, Unions
- C语言程序设计50例(三)(经典收藏)
猜你喜欢

Comprehensive experiment BGP

Parsing MySQL Databases: "SQL Optimization" vs. "Index Optimization"

报告:想学AI的学生数量已涨200%,老师都不够用了

【软件架构模式】MVVM模式和MVC模式区别

Naive Bayes--Study Notes--Basic Principles and Code Implementation

mysql login in cmd and basic operations of database and table

WTM:ASP.NET Core快速开发利器!

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

Custom Types - Enums, Unions

How programmers learn open source projects, this article tells you
随机推荐
将Servlet项目改为SSM项目
experiment....
消息队列面试题(2022最新整理)
世界第4疯狂的科学家,在103岁生日那天去世了
SkiaSharp's WPF self-painted five-ring bouncing ball (case version)
scrapy爬虫框架的使用
Explain / Desc 执行计划分析
sql server, FULL mode, dbcc shrinkfile(2,1) can not shrink the transaction log, or the original size, why?
STM32 Personal Notes - Watchdog
Install GBase 8 c database, the error shows "Resource, how to solve?
The soul asks: How does MySQL solve phantom reads?
net stop/start mysql80 access denied
Introduction and application of heap memory (including examples)
ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
Parsing MySQL Databases: "SQL Optimization" vs. "Index Optimization"
pve 删除虚拟机「建议收藏」
node 格式化时间的传统做法与高级做法(moment)
AC与瘦AP的WLAN组网实验
2022年中盘点 | 产品打底,科技背书,广汽集团阔步向前
Qt 支持HEIC/HEIF格式图片