Skrypt rozszerza pole do wpisywania wiadomości w chatboxe.
Do CSS:
#req_message {
width: 224px;
-webkit-transition: width 1s ease;
-moz-transition: width 1s ease;
-o-transition: width 1s ease;
-ms-transition: width 1s ease;
transition: width 1s ease;
}
#req_message:focus {
width: 400px;
}
400 - szerokość pola po najechaniu.
Offline