aboutsummaryrefslogtreecommitdiff
path: root/public/css/demos/hover.css
blob: 23592dac8902190e338a19219484b64b68b651fb (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.hover-a11y .row {
  background-color: #004a93;
}

.hover-a11y .button {
  color: #ffffff;
  padding: 15px 25px;
  text-align: center;
}

.hover-a11y .mouse-pointer {
  animation: mousepos 6s ease-in-out 0s infinite;
  -webkit-animation: mousepos 6s ease-in-out 0s infinite;
  -moz-animation: mousepos 6s ease-in-out 0s infinite;
  -o-animation: mousepos 6s ease-in-out 0s infinite;
}

.hover-a11y:not(.no-active) .button.active {
  color: #aabbdd;
}

.hover-a11y.with-underline:not(.no-active) .button.active {
  text-decoration: underline;
}

@-webkit-keyframes mousepos {
  0% {
    -webkit-transform: translateX(30px) rotateZ(-20deg);
  }
  15% {
    -webkit-transform: translateX(100px) rotateZ(-20deg);
  }
  20% {
    -webkit-transform: translateX(100px) rotateZ(-20deg);
  }
  40% {
    -webkit-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  45% {
    -webkit-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  80% {
    -webkit-transform: translateX(30px) rotateZ(-20deg);
  }
  100% {
    -webkit-transform: translateX(30px) rotateZ(-20deg);
  }
}

@-moz-keyframes mousepos {
  0% {
    -moz-transform: translateX(30px) rotateZ(-20deg);
  }
  15% {
    -moz-transform: translateX(100px) rotateZ(-20deg);
  }
  20% {
    -moz-transform: translateX(100px) rotateZ(-20deg);
  }
  40% {
    -moz-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  45% {
    -moz-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  80% {
    -moz-transform: translateX(30px) rotateZ(-20deg);
  }
  100% {
    -moz-transform: translateX(30px) rotateZ(-20deg);
  }
}

@-o-keyframes mousepos {
  0% {
    -o-transform: translateX(30px) rotateZ(-20deg);
  }
  15% {
    -o-transform: translateX(100px) rotateZ(-20deg);
  }
  20% {
    -o-transform: translateX(100px) rotateZ(-20deg);
  }
  40% {
    -o-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  45% {
    -o-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  80% {
    -o-transform: translateX(30px) rotateZ(-20deg);
  }
  100% {
    -o-transform: translateX(30px) rotateZ(-20deg);
  }
}

@keyframes mousepos {
  0% {
    transform: translateX(30px) rotateZ(-20deg);
  }
  15% {
    transform: translateX(100px) rotateZ(-20deg);
  }
  20% {
    transform: translateX(100px) rotateZ(-20deg);
  }
  40% {
    transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  45% {
    transform: translateX(300px) rotateZ(-20deg) translateY(10px);
  }
  80% {
    transform: translateX(30px) rotateZ(-20deg);
  }
  100% {
    transform: translateX(30px) rotateZ(-20deg);
  }
}