-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtransitionWithImages.html
More file actions
60 lines (50 loc) · 1.47 KB
/
Copy pathtransitionWithImages.html
File metadata and controls
60 lines (50 loc) · 1.47 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
<!doctype html>
<html>
<head>
<title>Transition with Images</title>
<meta name="viewport" content="width=device-width">
<style type="text/css" media="screen">
ul{
list-style-type: none;
}
li{
float: left;
padding: 1em;
}
.box img{
width: 100px;
height: 150px;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
}
.box img:hover{
width: 150px;
height: 200px;
}
/* NOTE: used for screen capture in the presentation */
.fakeHover{
width: 150px;
height: 200px;
}
</style>
</head>
<body>
<h1>Transition with Images</h1>
<!--
NOTE: Be sure to request the bigger ":hover"-sized images
Downsampling images is essentially free (bandwidth concerns notwithstanding).
Upsampling images causes the dreaded "jaggies"...
-->
<div id="covers">
<ul>
<li><div class="box"><img src="http://lorempixel.com/150/200/food/1" /></div></li>
<li><div class="box"><img src="http://lorempixel.com/150/200/food/2" /></div></li>
<li><div class="box"><img src="http://lorempixel.com/150/200/food/3" /></div></li>
<li><div class="box"><img src="http://lorempixel.com/150/200/food/4" /></div></li>
</ul>
</div>
</body>
</html>