Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Created January 23, 2013 00:16
Show Gist options
  • Select an option

  • Save mason-stewart/4600299 to your computer and use it in GitHub Desktop.

Select an option

Save mason-stewart/4600299 to your computer and use it in GitHub Desktop.
COOL WEEK 3 classwork from CoderDojo Web class.
.sidebar {
width: 50%;
float: left;
}
.thumbnail {
float: left;
width: 120px;
height: 120px;
border-radius: 120px;
overflow: hidden;
-webkit-transition: all 0.9s ease;
}
.thumbnail:hover {
width: 162px;
height: 162px;
border: 10px solid purple;
-webkit-transition: all 0.9s ease;
-webkit-transform: rotate(500deg);
}
.thumbnail img {
width: 100%;
height: 100%;
border-radius: 1000px;
}
.upside-down {
-webkit-transform: rotate(180deg);
}
.ghost {
opacity: 0.1;
}
.ghost:hover {
opacity: 1;
width: 20px;
height: 20px;
}
.main {
width: 45%;
float: left;
}
.big {
float: left;
width: 100%;
border-radius: 1000px;
overflow: hidden;
}
.big img {
width: 100%;
}
<html>
<head>
<title>My Great Ice Cream</title>
<link rel="stylesheet" type="text/css" href="ice-cream.css">
</head>
<body>
<div class="sidebar">
<div class="thumbnail upside-down">
<img src="ice-cream-1.jpg">
</div>
<div class="thumbnail ghost">
<img src="ice-cream-2.jpg">
</div>
<div class="thumbnail">
<img src="ice-cream-3.jpg">
</div>
</div>
<!-- end of sidebar -->
<div class="main">
<div class="big">
<img src="ice-cream-4.jpg">
</div>
</div>
</body>
</html>
@mason-stewart

Copy link
Copy Markdown
Author

Wow, mason, thanks for being the COOLEST!!!!!!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment