Added new transition duration (#21427)
Added new transition Added transition duration to the code and indention to the code.
This commit is contained in:
@ -92,7 +92,18 @@ button:hover {
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
To determine the speed of the hover effect use the property `transition-duration`.
|
To determine the speed of the hover effect, use the property `transition-duration`.
|
||||||
|
```
|
||||||
|
button {
|
||||||
|
background-color: #f4511e;
|
||||||
|
transition-duration: 0.4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: #0E2C5B;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Disabled Buttons
|
### Disabled Buttons
|
||||||
|
|
||||||
@ -121,10 +132,11 @@ To animate a button on click use 'button:active':
|
|||||||
background-color: #ff7d1a;
|
background-color: #ff7d1a;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
|
transition-duration: 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:hover {
|
.button:hover {
|
||||||
background-color: #ff6d00;
|
background-color: #ff6d00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:active {
|
.button:active {
|
||||||
|
Reference in New Issue
Block a user