Welcome to Home.

Monday, February 22, 2016

Page Transition in HTML using CSS

<!DOCTYPE.html>
<html>
<head>
<meta charset="utf-8">
<style>
.div
{
width:1000px;
height:1000px;
background:red;
transition:width 2s;
}
div:hover
{
width:1400px;height:600px;background:#3F0;
}
</style>
<title>Page Transitions</title>
</head>
<body>
<div class="div">
</div>
</body>
</html>

No comments:

Post a Comment