1-webkit-transition: all .3s ease-in-out;
2-moz-transition: all .3s ease-in-out;
3-o-transition: all .3s ease-in-out;
4-ms-transition: all .3s ease-in-out;
5transition: all .3s ease-in-out;
1div {
2 transition: all 0.5s ease;
3 background: red;
4 padding: 10px;
5}
6div:hover {
7 background: green;
8 padding: 20px;
9}