forked from chinchang/hint.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
93 lines (71 loc) · 2.4 KB
/
demo.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
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Demo | hint.css</title>
<meta name="description" content="A tooltip library in CSS">
<meta name="viewport" content="width=device-width">
<style type="text/css">
body {
text-align: center;
font-family: Arial;
background: #C2E2F2;
height: 100%;
font-size: 18px;
color: #444;
}
h1 {
font-size: 5em;
}
h1,h3{
margin: 5px 0;
}
a {
color: #1A5A7A;
outline: none;
text-decoration: none;
}
</style>
<link rel="stylesheet" href="hint.css">
</head>
<body>
<h1>HINT.css</h1>
<h3>A tooltip library in CSS</h3>
<p>
<a href="#" class="hint--top" data-hint="Yeah, I am >:D">Look, there is something over me.</a>
</p>
<p>
<a href="#" class="hint--right" data-hint="Are you sure you are?">I am always right!</a>
</p>
<p>
<a href="#" class="hint--bottom" data-hint="Sure. Cheers!">How about a bottoms up?</a>
</p>
<p>
<a href="#" class="hint--left" data-hint="LEFT-over Sir...">What do we get now?</a></p>
<p><a class="hint--right" data-hint="Made by Kushagra Gour" target="_blank" href="https://twitter.com/chinchang457"><img src="http://www.gravatar.com/avatar/6be4e636e8aacd405bed5cd15124a875?s=80&d=mm&"></a>
</p>
<p>
<a class="hint--top hint--error" data-hint="This is an error tooltip">Oh man! You are gonna self-destruct in 5 sec.</a>
</p>
<p>
<a class="hint--left hint--warning" data-hint="This is a warning tooltip">You did something wrong!</a>
</p>
<p>
<a class="hint--right hint--info" data-hint="This is an info tooltip">You can use different classes for different types of tooltips.</a>
</p>
<p>
<a class="hint--bottom hint--success" data-hint="This is a success tooltip">Hurray! You have seen all 4 context types.</a>
</p>
<h3>Extra</h3>
<p>
<a class="hint--left hint--always" data-hint="...which always keep showing">You can also make tooltips...</a>
</p>
<p>
<a class="hint--top hint--rounded" data-hint="We have rounded corners for you">Hmm...So you don't like sharp edges?</a>
</p>
<h3>Effects</h3>
<p>
<a class="hint--right hint--bounce" data-hint="Bounce">Adding a <code>hint--bounce</code> class gives you that...</a>
</p>
</body>
</html>