-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (40 loc) · 948 Bytes
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Link hover demo</title>
<style>
a:hover {
background: rgba(255,0,0,0.2);
}
a:hover::before {
content: attr(href);
padding: 2px;
position: fixed;
bottom: 2em;
left: 1em; right: 1em;
border: 1px solid black;
border-radius: 0.5em;
background: white;
box-shadow: 2px 3px 2px 0 silver;
font-weight: bolder;
text-decoration: none;
opacity: 1;
animation: 0.5s ease-in 2s 1 backwards hover;
}
@keyframes hover {
from { opacity: 0.05; }
to { opacity: 1; }
}
</style>
</head>
<body>
<ul>
<li><a href="test.html">Test your device for :hover supprt here</a></li>
<li><a href="https://example.com">example-com</a></li>
<li><a href="https://example.net">example-net</a></li>
<li><a href="https://github.com/tomer/MobileLinkTarget">Fork me on Github</a></li>
</ul>
</body>
</html>