Ajax Loader
×
HTML
<nav>
1
<nav>
2
  <ul>
3
    <li>
4
      <a href="#">
5
        <span>Like what you see?</span>
6
        <span>We can do it for you!</span>
7
      </a>
8
  </li>
9
    <li>
10
      <a href="#">
11
        <span>Want to learn more?</span>
12
        <span>Send us an email :)</span>
13
      </a>
14
  </li>
15
  </ul>
16
</nav>
 
CSS
* {
1
* {
2
  padding: 0;
3
  margin: 0;
4
}
5
 
6
ul {
7
  position: absolute;
8
  top: 50%;
9
  left: 50%;
10
  width: 320px;
11
  height: 30px;
12
  margin: -15px 0 0 -160px;
13
  list-style: none;
14
  font: .75em "lucida grande", arial, sans-serif;
15
}
16
 
17
a {
18
  position: absolute;
19
  width: 150px;
20
  height: 100%;
21
  text-decoration: none;
22
}
23
 
24
a span {
25
  position: absolute;
26
  width: 100%;
27
  text-align: center;
28
  line-height: 30px;
29
}
30
 
31
li:first-child a {
32
  color: #000;
33
  background: #f0f0f0;
34
}
35
 
36
li:first-child span {
37
  -webkit-transition: opacity .4s linear;
38
  -moz-transition: opacity .4s linear;
39
  -o-transition: opacity .4s linear;
40
  -ms-transition: opacity .4s linear;
41
  transition: opacity .4s linear;
42
}
43
 
44
li:first-child span:first-child,li:first-child a:hover span + span {
45
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
46
  filter: alpha(opacity=100);
47
  opacity: 1;
48
}
49
 
50
li:first-child span + span,li:first-child a:hover span:first-child {
51
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
52
  filter: alpha(opacity=0);
53
  opacity: 0;
54
}
55
 
56
li + li a {
57
  overflow: hidden;
58
  right: 0;
59
  color: #fff;
60
}
61
 
62
li + li span {
63
  -webkit-transition: top .3s ease-out;
64
  -moz-transition: top .3s ease-out;
65
  -o-transition: top .3s ease-out;
66
  -ms-transition: top .3s ease-out;
67
  transition: top .3s ease-out;
68
}
69
 
70
li + li span:first-child {
71
  background: #333;
72
  top: 0;
73
}
74
 
75
li + li span + span {
76
  background: #39f;
77
  top: 30px;
78
}
79
 
80
li + li a:hover span:first-child {
81
  top: -30px;
82
}
83
 
84
li + li a:hover span + span {
85
  top: 0;
86
}
87
 
 

Untitled

CSSDeck G+