Update format
This commit is contained in:
@ -5,6 +5,9 @@ tags: animation,beginner
|
||||
|
||||
Variables that can be reused for `transition-timing-function` properties, more powerful than the built-in `ease`, `ease-in`, `ease-out` and `ease-in-out`.
|
||||
|
||||
- The variables are defined globally within the `:root` CSS pseudo-class which matches the root element of a tree representing the document.
|
||||
- In HTML, `:root` represents the `<html>` element and is identical to the selector `html`, except that its specificity is higher.
|
||||
|
||||
```html
|
||||
<div class="easing-variables">Hover</div>
|
||||
```
|
||||
@ -50,8 +53,3 @@ Variables that can be reused for `transition-timing-function` properties, more p
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
|
||||
- The variables are defined globally within the `:root` CSS pseudo-class which matches the root element of a tree representing the document.
|
||||
- In HTML, `:root` represents the `<html>` element and is identical to the selector `html`, except that its specificity is higher.
|
||||
|
||||
Reference in New Issue
Block a user