Repository navigation
Expand file tree
/
Copy pathcss.html
More file actions
105 lines (87 loc) · 3.2 KB
/
Copy pathcss.html
File metadata and controls
105 lines (87 loc) · 3.2 KB
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
<html lang="en-us" class=" js no-flexbox flexbox-legacy no-touch rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent cssmask" dir="ltr"><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Hover Panels // CSS3 Playground</title>
<link href="/main.css" rel="stylesheet">
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet">
<script src="/js/modernizr.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<style type="text/css">
#container {
width: 720px;
}
.panel {
float: left;
width: 200px;
height: 200px;
margin: -20px;
position: relative;
}
/* -- make sure to declare a default for every property that you want animated -- */
.panel .hover {
float: none;
position: absolute;
top: 0;
left: 0;
z-index: 100;
width: 200px;
height: 200px;
border: 1px solid #aaa;
border-top: 1px solid #888;
border-left: 1px solid #888;
background: #6b7077;
text-align: center;
-o-transform: scale(.7);
-moz-transform: scale(.7);
-webkit-transform: scale(.7);
transform: scale(.7);
-moz-box-shadow: inset 1px 2px 8px #222;
-webkit-box-shadow: inset 1px 2px 8px rgba(0,0,0,0.7);
box-shadow: inset 1px 2px 8px rgba(0,0,0,0.7);
/* -- transition is the magic sauce for animation -- */
-o-transition: all .15s;
-moz-transition: all .15s ease-out;
-webkit-transition: all .15s ease-out;
transition: all .15s ease-out;
}
.panel .hover:hover {
z-index: 1000;
border-color: #bbb;
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
-o-transform: scale(1);
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
-moz-box-shadow: 0 15px 50px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 15px 50px rgba(0,0,0,0.3);
box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<div id="container">
<h1> Top Players</h1>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
<div class="panel"><div class="hover"></div></div>
</div>
<div id="other">
Some information
</div>
<!--<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-432773-11");
pageTracker._trackPageview();
} catch(err) {}
</script>-->
</body></html>