H5 special effects blur dynamic list bar: the wonderful use of shadows

PHPz
Release: 2017-04-04 13:42:53
Original
2152 people have browsed it

Let’s take a look at the final effect first

H5 special effects blur dynamic list bar: the wonderful use of shadows

Dynamic list bar

1. The list is always a list, so the code is as follows:

Display effect:

H5 special effects blur dynamic list bar: the wonderful use of shadows

#Original appearance

2. Then adjust the following fonts and remove the small ones in front Black dot, change the background to another color.

body{ background-color: #5F5F5F; } ul li{ font-size: 30px; list-style:none; }
Copy after login

3. In order to achieve the blur effect when still, a very clever method is used here:Shadow
No need for Gaussian blur, just use the visual effect of the human eye .

ul li a{ color: transparent;//字透明 text-shadow:0 0 5px #fff;//阴影 letter-spacing: 1px;//字距,为了好看点 }
Copy after login

H5 special effects blur dynamic list bar: the wonderful use of shadows

Blurred effect when still

4. To achieve dynamic effects when sliding, you can use:hoverSelector

ul li a:hover{ color:#fff; text-shadow:0 0 1px #fff; padding-left: 10px;//移动一下 }
Copy after login

H5 special effects blur dynamic list bar: the wonderful use of shadows

Dynamic effect

Basically the prototype is done like this, it’s super simple, but the effect is very good good. But I always feel like something is missing, so I’ll addanimationto see the effect.

ul li a{ color: transparent; text-shadow:0 0 5px #fff; letter-spacing: 1px; transition:all 0.4s ease-in-out; }
Copy after login

Finally put all the code:JSBin

Okay, the final effect is like this. Pure HTML5+CSS3 can now achieve many interesting functions. I will dig it out slowly, and interested friends can discuss it together.


The above is the detailed content of H5 special effects blur dynamic list bar: the wonderful use of shadows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!