Projects
View on GitHub
QiShaoXuan/css_tricks
QiShaoXuan/css_tricks has 4,077 GitHub stars and 402 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-05 19:48 UTC. Last push 2023-12-05.
Some CSS tricks - 一些 CSS 常用样式
Measured star growth
- in 24h
- +1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_en.md
Original
About
- Summarize some common CSS styles.
- Record some new CSS properties and a some tricks.
- Some animations under the "Animate" section are not CSS effects, because there is no place to put them, so they are temporarily stored here.
As little nonsense as possible, the code is simple to use, easy to copy.
talk is cheap show me the code
Quick start
- Clone the
https://github.com/QiShaoXuan/css_tricks.git - Install package
npm install - Development run
npm run docs:dev - Open
http://localhost:8080in your browser.
Inclued
Tool
Attribute
Animate
Static
- Reset style
- Scroll bar style
- Media
- Focus landscape screen
- Cursor
- Shadow
- Setting of rem & dpi
- Paper style
- Color shadow
Tricks
- Vertical middle
- Auto height
- Clear image empty & Image vertical
- Sticky footer
- Triangle border
- Text ellipsis
- insert line break
- Ground glass
- Params layout
- Auto width in absoulte position
- Berak line in long text
- Text shadow
- Tab animate
- Tab bottom circle convergence
- Circle hollowout
- Trangle hollowout
- Polygon layout
Contributing
- Fork this repository
- Create your branch:
git checkout -b new-branch - Make your changes
- Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin new-branch - Submit a pull request
or submit an issue, any helpful suggestions are welcomed.
JS Tricks
About cat
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,353 starspublic-apis/public-apis
A collective list of free APIs
496,642 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
437,072 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,045 stars