CSS3_transition
by Kim Ara
HTML
<div class="ex-01">Transition</div>
<div class="ex-02">Transition</div>
CSS
.ex-01 {
display: block;
width:200px;
margin: 5%;
padding: 20px;
text-decoration: none;
font-size: 12px;
color: white;
background-color: black;
transition: all 1s;
}
.ex-01:hover {
padding: 30px;
color: yellow;
background-color: red;
}
.ex-02 {
display: inline-block;
margin: 5%;
width: 80px;
height: 80px;
line-height:80px;
text-decoration: none;
font-size: 12px;
color: #999;
background-color: #f4f4f4;
border-width: 1px;
border-style: solid;
border-radius: 10%;
border-color:#999;
/*transition: width .2s ease,
height .2s ease,
line-height .2s ease,
color .2s ease,
font-size .2s ease,
border .2s ease,
background-color .2s ease,
border-radius .2s ease .4s;*/
}
.ex-02:hover {
width: 120px;
height: 120px;
line-height:120px;
color: #ffcccc;
font-size: 20px;
border-width: 5px;
border-color:#ff5e5d;
background-color: #fa8382;
border-radius: 50%;
}