Skip to content
中文

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
  • Use Node.js 22 LTS (22.12 or newer) or 24+ and install dependencies with npm ci.
  • Development run npm run docs:dev
  • Open http://localhost:5173/css_tricks/ in your browser.
  • Run npm run build and npm run docs:preview to preview the production build locally.

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 ​

view online

About cat ​

Read or leave comments on GitHub