Ajax Loader
HTML
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
5
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
6
<head>
7
  <meta charset="utf-8">
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9
  <title>Glossy Buttons</title>
10
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
11
</head>
12
<body>
13
  <div class="container">
14
    <a href="#" class="button">Submit</a>
15
    <a href="#" class="button button-green">Submit</a>
16
    <a href="#" class="button button-red">Submit</a>
17
  </div>
18
</body>
19
</html>
20
 
 
CSS
/*
1
/*
2
 * Copyright (c) 2013 Thibaut Courouble
3
 * http://www.cssflow.com
4
 *
5
 * Licensed under the MIT License:
6
 * http://www.opensource.org/licenses/mit-license.php
7
 *
8
 * View the Sass/SCSS source at:
9
 * http://www.cssflow.com/snippets/glossy-buttons/demo/scss
10
 *
11
 * Original PSD by Alex Montague: http://goo.gl/tsyNM
12
 */
13
 
14
@import url(http://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css);
15
 
16
html, body { min-height: 100%; }
17
 
18
body {
19
  font: 12px/20px 'Lucida Grande', Verdana, sans-serif;
20
  color: #404040;
21
  background: #92c7d6;
22
  background-image: -webkit-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
23
  background-image: -moz-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
24
  background-image: -o-radial-gradient(top, circle cover, #97d0e1, #427388 80%);
25
  background-image: radial-gradient(top, circle cover, #97d0e1, #427388 80%);
26
}
27
 
28
.container {
29
  width: 550px;
30
  margin: 80px auto;
31
  text-align: center;
32
}
33
 
34
.container > .button { margin: 0 10px; }
35
 
36
.button {
37
  display: inline-block;
38
  vertical-align: top;
39
  position: relative;
40
  overflow: hidden;
41
  min-width: 96px;
42
  line-height: 46px;
43
  padding: 0 24px;
44
  font-size: 14px;
45
  color: white;
46
  text-align: center;
47
  text-decoration: none;
48
  text-shadow: 0 1px #154c86;
49
  background-color: #247edd;
50
  background-clip: padding-box;
51
  border: 1px solid;
52
  border-color: #1c65b2 #18589c #18589c;
53
  border-radius: 4px;
54
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
55
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
56
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
57
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
58
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
59
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
60
}
61
 
62
.button:before {
63
  content: '';
64
  position: absolute;
65
  top: -25%;
66
  bottom: -25%;
67
  left: -20%;
68
  right: -20%;
69
  border-radius: 50%;
70
  background: transparent;
71
  -webkit-box-shadow: inset 0 0 38px rgba(255, 255, 255, 0.5);
72
  box-shadow: inset 0 0 38px rgba(255, 255, 255, 0.5);
73
}
74
 
75
.button:hover { background-color: #1a74d3; }
76
 
77
.button:active {
78
  color: rgba(255, 255, 255, 0.9);
79
  text-shadow: 0 -1px #154c86;
80
  background: #1f71c8;
81
  border-color: #113f70 #154c86 #1c65b2;
82
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.4);
83
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.4);
84
  background-image: -webkit-linear-gradient(top, #1a5da5, #3a8be0);
85
  background-image: -moz-linear-gradient(top, #1a5da5, #3a8be0);
86
  background-image: -o-linear-gradient(top, #1a5da5, #3a8be0);
87
  background-image: linear-gradient(to bottom, #1a5da5, #3a8be0);
88
}
89
 
90
.button:active:before {
91
  top: -50%;
92
  bottom: -125%;
93
  left: -15%;
94
  right: -15%;
95
  -webkit-box-shadow: inset 0 0 96px rgba(0, 0, 0, 0.2);
96
  box-shadow: inset 0 0 96px rgba(0, 0, 0, 0.2);
97
}
98
 
99
.button-green {
100
  text-shadow: 0 1px #0d4d09;
101
  background-color: #1ca913;
102
  border-color: #147b0e #11640b #11640b;
103
}
104
 
105
.button-green:hover { background-color: #159b0d; }
106
 
107
.button-green:active {
108
  text-shadow: 0 -1px #0d4d09;
109
  background: #189210;
110
  border-color: #093606 #0d4d09 #147b0e;
111
  background-image: -webkit-linear-gradient(top, #126d0c, #20c016);
112
  background-image: -moz-linear-gradient(top, #126d0c, #20c016);
113
  background-image: -o-linear-gradient(top, #126d0c, #20c016);
114
  background-image: linear-gradient(to bottom, #126d0c, #20c016);
115
}
116
 
117
.button-red {
118
  text-shadow: 0 1px #72100d;
119
  background-color: #cd1d18;
120
  border-color: #9f1713 #891310 #891310;
121
}
122
 
123
.button-red:hover { background-color: #c01511; }
124
 
125
.button-red:active {
126
  text-shadow: 0 -1px #72100d;
127
  background: #b61a15;
128
  border-color: #5b0d0b #72100d #9f1713;
129
  background-image: -webkit-linear-gradient(top, #921511, #e4201b);
130
  background-image: -moz-linear-gradient(top, #921511, #e4201b);
131
  background-image: -o-linear-gradient(top, #921511, #e4201b);
132
  background-image: linear-gradient(to bottom, #921511, #e4201b);
133
}
134
 
 

Glossy Buttons

CSSDeck G+