Enjoy the good life everyday!
关闭
欢迎来PyGo个人空间 ^_^
HTML+CSS标题艺术字 | PyGo²

HTML+CSS标题艺术字

HTML基于css开发的艺术字,有特效。


样式分为2种,其实就是把效果反过来了,pushdown与raisedoup。

HTML

1
2
3
4
5
6
7
<div class="f-pr-heading-wrapper">
<a href="" class="f-pushdown-header f-pushdown-header-pushDown" title="HOVER ME">
You can
<span style="color:red;">search</span>
everything
</a>
</div>

CSS

f-pr-heading-wrapper为div基础标签。
background:-webkit-gradient是用于标签背景。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.f-pr-heading-wrapper {
width: 100%;
text-align: center;
/*padding: 10px;*/
background-color: #00BFFF;
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#FFFF00), to(#2EFE2E));
}

/* PUSH DOWN */
.f-pushdown-header {
display: inline-block;
text-align: center;
font-family: 'Francois One', Helvetica, Arial, sans-serif;
font-size: 6rem;
color: #e7e7e7;
text-decoration: none;
transition: all 400ms ease-in-out;
}

.f-pushdown-header-pushDown {
text-shadow: 1.5px 1.5px 0 #333, 0px 1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px 1.5px 0 #333, 1.5px -1.5px 0 #333, 0.77782px 0.77782px 0 #aaaaaa, 1.55563px 1.55563px 0 #aaaaaa, 2.33345px 2.33345px 0 #aaaaaa, 3.11127px 3.11127px 0 #aaaaaa, 3.88909px 3.88909px 0 #aaaaaa, 4.6669px 4.6669px 0 #aaaaaa, 5.44472px 5.44472px 0 #aaaaaa, 6.22254px 6.22254px 0 #aaaaaa, 7.00036px 7.00036px 0 #aaaaaa, 7.77817px 7.77817px 0 #aaaaaa;
}

.f-pushdown-header-pushDown:hover {
color: #0d6aad;
transform: translate(10px, 0);
text-shadow: 1.5px 1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px 1.5px 0 #cac6c5, 1.5px -1.5px 0 #cac6c5;
}

/* RAISE UP */
.f-raiseup-header {
display: inline-block;
text-align: center;
font-family: 'Francois One', Helvetica, Arial, sans-serif;
font-size: 6rem;
color: #e7e7e7;
text-decoration: none;
transition: all 400ms ease-in-out;
}

.f-raiseup-header-pushDown {
text-shadow: 1.5px 1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px 1.5px 0 #cac6c5, 1.5px -1.5px 0 #cac6c5;
}

.f-raiseup-header-pushDown:hover {
color: #0d6aad;
transform: translate(10px, 0);
text-shadow: 1.5px 1.5px 0 #333, 0px 1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px 1.5px 0 #333, 1.5px -1.5px 0 #333, 0.77782px 0.77782px 0 #aaaaaa, 1.55563px 1.55563px 0 #aaaaaa, 2.33345px 2.33345px 0 #aaaaaa, 3.11127px 3.11127px 0 #aaaaaa, 3.88909px 3.88909px 0 #aaaaaa, 4.6669px 4.6669px 0 #aaaaaa, 5.44472px 5.44472px 0 #aaaaaa, 6.22254px 6.22254px 0 #aaaaaa, 7.00036px 7.00036px 0 #aaaaaa, 7.77817px 7.77817px 0 #aaaaaa;

}
  • 本文作者:mingliang.gao【一个爱老婆Python程序猿。。。。。。】
  • 本文链接: http://pygo2.top/articles/25985/
  • 版权声明: 本博客所有文章欢迎转载,转载请注明出处!
觉得有帮助 请偶坐个公交车
0%