Add extractor and builder
Tested and working
This commit is contained in:
@ -6,14 +6,10 @@ tags: animation,intermediate
|
||||
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`.
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
<div class="easing-variables">Hover</div>
|
||||
```
|
||||
|
||||
#### CSS
|
||||
|
||||
```css
|
||||
:root {
|
||||
/* Place variables in here to use globally */
|
||||
@ -56,8 +52,6 @@ powerful than the built-in `ease`, `ease-in`, `ease-out` and `ease-in-out`.
|
||||
}
|
||||
```
|
||||
|
||||
#### Demo
|
||||
|
||||
#### 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