-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
144 lines (127 loc) · 4.3 KB
/
test.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trapdoor Button</title>
<style>
@import "compass/css3";
.trapdoor {
-webkit-transform: translateZ(0px);
-webkit-font-smoothing: antialiased;
position: absolute;
top: 50%;
left: 50%;
margin-left: -100px;
margin-top: -25px;
width: 200px;
height: 50px;
box-shadow: inset -7px 0px 12px -8px rgba(0, 0, 0, 0.3), inset 7px 0px 12px -8px rgba(0, 0, 0, 0.3);
background: rgba(0, 0, 0, 0.3);
-webkit-transition: background 400ms ease-in-out;
-moz-transition: background 400ms ease-in-out;
-ms-transition: background 400ms ease-in-out;
-o-transition: background 400ms ease-in-out;
transition: background 400ms ease-in-out;
background-image: url('img/dynmap.png');
background-size: cover;
background-repeat: no-repeat;
position: relative;
cursor: pointer;
}
.trapdoor:hover {
background: #fff;
background-size: cover;
.door {
box-shadow: 0px 0px 10px -2px rgba(0, 0, 0, 0.4);
-webkit-transform: scale(1.08);
-moz-transform: scale(1.08);
-ms-transform: scale(1.08);
-o-transform: scale(1.08);
transform: scale(1.08);
}
.top {
top: -50%;
}
.bottom {
top: 100%;
}
}
.twitter-follow-button {
margin-left: -77px;
position: absolute !important;
margin-top: -14px;
left: 50%;
top: 50%;
}
.top {
top: 0%;
left: 0px;
&:before {
top: 5px;
}
}
.bottom {
top: 50%;
left: 0px;
&:before {
top: -20px;
}
}
.door {
-webkit-transition: top 400ms, box-shadow 200ms, -webkit-transform 300ms;
-moz-transition: top 400ms, box-shadow 200ms, -moz-transform 300ms;
-ms-transition: top 400ms, box-shadow 200ms, -ms-transform 300ms;
-o-transition: top 400ms, box-shadow 200ms, -o-transform 300ms;
transition: top 400ms, box-shadow 200ms, transform 300ms;
-webkit-transition-timing-function: ease-in-out;
-moz-transition-timing-function: ease-in-out;
-ms-transition-timing-function: ease-in-out;
-o-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
background-color: #fff;
position: absolute;
overflow: hidden;
width: 100%;
z-index: 2;
height: 50%;
&:before {
font-family: 'tweet', sans-serif;
position: absolute;
margin-left: -20px;
font-size: 35px;
display: block;
color: #4099FF;
content: "\e000";
width: 0px;
height: 20px;
left: 52%;
}
}
@font-face {
font-family: 'tweet';
src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/277/tweet.woff') format('woff');
font-weight: normal;
font-style: normal;
}
</style>
</head>
<body>
<a href="https://twitter.com/twholman" class="trapdoor">
<div class="top door"></div>
<div class="bottom door"></div>
<div class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="false">Open Dynmap</div>
</a>
<script>
!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "twitter-wjs");
</script>
</body>
</html>