Create CSS3 animation on width


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#demo {
  width: 100px;
  height: 100px;
  background: red;
  transition: width 1s;
  -moz-transition: width 1s;
  -webkit-transition: width 1s;
  -o-transition: width 1s;
}

#demo:hover {
  width: 300px;
}
</style>
</head>
<body>
  <div id="demo"></div>
</body>
</html>

Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript