back
Code
CSS
HTML
Web
#div271{
width:50%;
height:200px;
background-
color:red;
transition-
duration:3s;
-
webkit-
transition-
duration:3s;
}
#div272{
width:50%;
height:200px;
background-
color:red;
transition-
duration:10s;
-
webkit-
transition-
duration:10s;
}
#div271:active{
width:100%;
background-
color:blue;
}
#div272:active{
width:100%;
background-
color:green;
}