Demo | Link | What it Shows |
---|---|---|
1Pixel | Click here | Sub‑pixel crisp lines / hairline technique |
Gradient Color Animation | Click here | Animated multi‑stop gradient background |
Each demo is intentionally minimal so you can focus on one concept at a time.
This repository is a personal learning lab: short, digestible CSS “tricks” collected while practicing layout, animation, rendering performance, and visual polish. Rather than large examples, the goal is: one idea, clean markup, clear styles.
CSS-Tricks/
CSS-1Pixel/ # Demo: ultra-thin line technique
index.html
style.css
README.md (demo-specific notes)
CSS-Gradient-Color-Animation/ # Demo: animated gradient background
index.html
style.css
README.md (demo-specific notes)
LICENSE
README.md (this file)
Each trick lives in its own directory so you can open it standalone or deploy selectively.
You only need a browser. Clone and open any index.html
file directly, or serve the root for nicer relative paths:
Windows PowerShell example:
git clone https://github.com/juansilvadesign/CSS-Tricks.git
cd CSS-Tricks
# Option A: Open a file directly
start CSS-Gradient-Color-Animation/index.html
# Option B: Spin up a quick local static server (Python required)
python -m http.server 8080
# Then visit: http://localhost:8080/CSS-Gradient-Color-Animation/
Alternatively use the VS Code Live Server extension.
CSS-New-Trick-Name/
index.html
+ style.css
README.md
inside that folderNaming Suggestion: Use descriptive, Title-Cased, hyphen separated folder names for clarity.
Keep it tiny. One concept. Readable CSS. Resist over‑engineering. Favor clarity over cleverness.
These experiments are inspired by the excellent teaching of Kevin Powell’s YouTube channel. His clear explanations encouraged me to translate lessons into focused micro-examples (this repo). If you’re learning CSS, his channel is a must‑watch.
Suggestions or small improvements are welcome:
feat/add-new-demo
)Please keep examples minimal and accessible (reduced motion friendly, semantic HTML, good contrast).
This project is released under the MIT License – see LICENSE
for full text. You can reuse or modify these examples freely (attribution appreciated but not required).
Made with 💜 by Juan Pablo.
“Small, consistent practice compounds into deep skill.”
If this helped you, a ⭐ on the repository motivates more tiny CSS experiments. Enjoy exploring!