Skip to content

Instantly share code, notes, and snippets.

@karuna24s
Created February 11, 2017 17:42
Show Gist options
  • Save karuna24s/6e825245a7caabd704c4f8f89be4b675 to your computer and use it in GitHub Desktop.
Save karuna24s/6e825245a7caabd704c4f8f89be4b675 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=6e825245a7caabd704c4f8f89be4b675
<!DOCTYPE html>
<html>
<head>
<title>CSS Animations</title>
</head>
<body>
<div class="small-square"></div>
<div class="square"></div>
<div class="balloon"><img src="http://www.pngpix.com/wp-content/uploads/2016/08/PNGPIX-COM-Hot-Air-Balloon-PNG-Transparent-Image.png"></div>
</body>
</html>
.small-square:hover {
transform: scale(5,1);
}
.square:hover {
transform: rotate(45deg);
}
.balloon:hover {
transform: translate(500px, 200px);
transition-duration: 5s;
transition-timing-function: ease-out;
}
.small-square {
background-color: purple;
width: 50px;
height: 50px;
margin-bottom: 50px;
}
.square {
background-color: blue;
width: 100px;
height: 100px;
}
img {
height: 150px;
}
div {
margin-bottom: 25px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment