Summary of CSS Knowledge
1. Browser rendering principle
- Building an HTML tree (DOM) from HTML
- Building a CSS Tree from CSS (CSSOM)
- Combine two trees into one render tree
- Layout (document flow, box model, calculated size and location)
- Paint (to draw border colors, text colors, shadows, etc.)
- Compose (display screen according to cascade relationship)
2. Two ways to do CSS animation
1. Use transform twice
.a===transform===>.b
.b===transform===>.c
How do I know the intermediate point — using setTimeout or listening for the transitionEnd event
2. Use the animation
Declare keyframes
Add animation
3. Available data
- Articles written by the Google team
- csstriggers.com/
- MDN