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>Flip-down Clock</title>
10
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
11
</head>
12
<body>
13
  <p class="clock">
14
    <span class="clock-block">
15
      <span class="clock-val">42</span>
16
      <span class="clock-unit">minutes</span>
17
    </span>
18
    <span class="clock-block">
19
      <span class="clock-val">08</span>
20
      <span class="clock-unit">seconds</span>
21
    </span>
22
  </p>
23
</body>
24
</html>
25
 
 
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/flip-down-clock/demo/scss
10
 *
11
 * Original PSD by Julien Debove: http://goo.gl/9bKUp
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: #eee;
22
  background-image: -webkit-radial-gradient(circle cover, #edf0f0, #d7d9da 80%);
23
  background-image: -moz-radial-gradient(circle cover, #edf0f0, #d7d9da 80%);
24
  background-image: -o-radial-gradient(circle cover, #edf0f0, #d7d9da 80%);
25
  background-image: radial-gradient(circle cover, #edf0f0, #d7d9da 80%);
26
}
27
 
28
.clock {
29
  margin: 60px auto;
30
  text-align: center;
31
  cursor: default;
32
  -webkit-user-select: none;
33
  -moz-user-select: none;
34
  -ms-user-select: none;
35
  user-select: none;
36
}
37
 
38
.clock-block {
39
  display: inline-block;
40
  vertical-align: top;
41
  position: relative;
42
  width: 100px;
43
  height: 98px;
44
  margin: 0 8px;
45
  padding-top: 16px;
46
  line-height: 1;
47
  font-family: Helvetica, Arial, sans-serif;
48
  text-align: center;
49
  text-shadow: 0 1px rgba(255, 255, 255, 0.3);
50
  background: #e5e7eb;
51
  border: 1px solid #9fa2ad;
52
  border-radius: 3px 3px 2px 2px;
53
  -webkit-box-sizing: border-box;
54
  -moz-box-sizing: border-box;
55
  box-sizing: border-box;
56
  background-image: -webkit-linear-gradient(top, #f1f2f5, #e5e7eb 20%, #c2c5d1 50%, #e5e7eb 80%, #e4e5eb);
57
  background-image: -moz-linear-gradient(top, #f1f2f5, #e5e7eb 20%, #c2c5d1 50%, #e5e7eb 80%, #e4e5eb);
58
  background-image: -o-linear-gradient(top, #f1f2f5, #e5e7eb 20%, #c2c5d1 50%, #e5e7eb 80%, #e4e5eb);
59
  background-image: linear-gradient(to bottom, #f1f2f5, #e5e7eb 20%, #c2c5d1 50%, #e5e7eb 80%, #e4e5eb);
60
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.1);
61
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.1);
62
}
63
 
64
.clock-block:before, .clock-block:after {
65
  content: '';
66
  position: absolute;
67
  bottom: -4px;
68
  left: -1px;
69
  right: -1px;
70
  z-index: -1;
71
  height: 4px;
72
  background: #cacfd9;
73
  border: 1px solid #9fa2ad;
74
  border-radius: 2px;
75
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.1);
76
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.1);
77
}
78
 
79
.clock-block:before { bottom: -7px; }
80
 
81
.clock-val {
82
  display: block;
83
  position: relative;
84
  z-index: 1;
85
  font-size: 64px;
86
  font-weight: bold;
87
  color: #4f5258;
88
}
89
 
90
.clock-val:before, .clock-val:after {
91
  content: '';
92
  position: absolute;
93
  left: 0;
94
  right: 0;
95
}
96
 
97
.clock-val:before {
98
  z-index: -1;
99
  top: -16px;
100
  bottom: 50%;
101
  border-radius: 2px 2px 0 0;
102
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
103
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
104
}
105
 
106
.clock-val:after {
107
  top: 50%;
108
  bottom: -16px;
109
  border-top: 1px solid rgba(60, 62, 68, 0.4);
110
  border-radius: 0 0 2px 2px;
111
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 50%);
112
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 50%);
113
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 50%);
114
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 50%);
115
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
116
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
117
}
118
 
119
.clock-unit {
120
  display: block;
121
  margin-top: -2px;
122
  font-size: 13px;
123
  font-weight: 200;
124
  color: #6b707a;
125
  text-transform: capitalize;
126
}
127
 
128
.clock-unit:after {
129
  content: '';
130
  position: absolute;
131
  z-index: -2;
132
  top: 100%;
133
  left: -1px;
134
  right: -1px;
135
  height: 30px;
136
  margin-top: 6px;
137
  border-radius: 0 0 3px 3px;
138
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
139
  background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
140
  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
141
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
142
}
143
 
 

Flip-down Clock

CSSDeck G+