-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagic.html
54 lines (52 loc) · 1.56 KB
/
magic.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<style>
.tinRightOut {
animation-name: tinRightOut;
}
@keyframes tinRightOut {
0%, 20%, 40%, 50% {
opacity: 1;
transform: scale(1, 1) translateX(0);
}
10%, 30% {
opacity: 1;
transform: scale(1.1, 1.1) translateX(0);
}
100% {
opacity: 0;
transform: scale(1, 1) translateX(900%);
}
}
</style>
<body>
<div class="container">
<h2>Shopping-cart Glyph</h2>
<p>Shopping-cart icon: <span class="glyphicon glyphicon-shopping-cart"></span></p>
<p>Shopping-cart icon as a link:
<a href="#">
<span class="glyphicon glyphicon-shopping-cart"></span>
</a>
</p>
<p>Shopping-cart icon on a button:
<button type="button" class=" btn btn-default btn-sm">
<span class="glyphicon glyphicon-shopping-cart"></span> Shopping Cart
</button>
</p>
<p>tinRightOut Shopping-cart icon on a styled link button:
<a href="#" class="btn btn-info btn-lg">
<span class="glyphicon glyphicon-shopping-cart"></span> Shopping Cart
</a>
</p>
<p>Unicode:
<span class="glyphicon"></span>
</p>
</div>
</body>
</html>