How to realize photo blur with CSS
Today, the editor will share with you the relevant knowledge points about how to achieve photo blur in CSS. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
In fact, the implementation of photo blurring is very simple. It can be done with only one code style. That's filter: blur (fuzzy value). Of course, to achieve compatibility, you need to use-webkit-filter: blur (fuzzy values).
Let's take a look at the implementation code:
Picture blur-(yisu.com) img {- webkit-filter: blur (3px); / * compatibility * / filter: blur (3px); / * blur effect * / margin-top: 10px;} H2 {color:#EBEDEF } .text {position: absolute; top: 30%; left: 50%; transform: translate (- 50%,-50%); text-align: center;}
This is a blurred photo. These are all the contents of the article "how to achieve Photo blurring in CSS". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.