|
| 1 | +# 🎨 Advanced CSS Visual Diagrams |
| 2 | + |
| 3 | +A fully interactive, educational web tool built with HTML, CSS, and JavaScript to visually demonstrate core and advanced CSS concepts through diagrams, animations, and user interactions. |
| 4 | + |
| 5 | +## 📁 Project Structure |
| 6 | + |
| 7 | +- **index.html** |
| 8 | + Contains the structural layout and components for all demos including box model, positioning, float, display, z-index, flexbox, and grid. |
| 9 | + |
| 10 | +- **stylesheet.css** |
| 11 | + Styles the interface using advanced gradients, shadows, animations, transitions, and responsive media queries. Provides visual clarity to the diagrams with vibrant UI/UX. |
| 12 | + |
| 13 | +- **index.js** |
| 14 | + Adds interactivity and dynamic behaviors such as: |
| 15 | + - Drag and drop for layers |
| 16 | + - Live-updated CSS values |
| 17 | + - Interactive sliders/buttons for styling controls |
| 18 | + - Sound and animation effects |
| 19 | + - Keyboard shortcuts for quick access |
| 20 | + |
| 21 | +## 🚀 Features |
| 22 | + |
| 23 | +### ✅ Core CSS Visualizations |
| 24 | +- Centering elements |
| 25 | +- Box Model decomposition |
| 26 | +- CSS Specificity hierarchy |
| 27 | +- CSS Positioning types |
| 28 | +- Display types (block, inline, inline-block) |
| 29 | +- Float behaviors |
| 30 | +- Z-Index layering |
| 31 | + |
| 32 | +### 🔧 Flexbox Playground |
| 33 | +- Adjust `flex-direction`, `wrap`, `justify-content`, `align-items`, `align-content`, `gap` |
| 34 | +- Modify individual item properties like `flex-grow`, `shrink`, `basis`, `align-self`, and `order` |
| 35 | +- Keyboard navigation and animations |
| 36 | + |
| 37 | +### 🧱 Grid Layout Explorer |
| 38 | +- Modify `grid-template-columns` and `rows` |
| 39 | +- Change gaps and alignment |
| 40 | +- Toggle grid lines and experiment with complex layouts |
| 41 | +- Realtime code output panel |
| 42 | + |
| 43 | +### 🧩 Extra Interactivity |
| 44 | +- Drag elements across containers |
| 45 | +- Color customization and live style updates |
| 46 | +- Animated transitions and audio feedback |
| 47 | + |
| 48 | +## 💻 How to Run |
| 49 | + |
| 50 | +1. Clone or download the repository. |
| 51 | +2. Open `index.html` in your browser. |
| 52 | +3. Interact with the buttons, sliders, and diagrams to explore CSS behavior. |
| 53 | + |
| 54 | +## ⌨️ Keyboard Shortcuts |
| 55 | +- `Ctrl + R`: Reset Demo Element |
| 56 | +- `Ctrl + Z`: Randomize Z-Index |
| 57 | +- `Ctrl + F`: Reset Float |
| 58 | + |
| 59 | +## 🔊 Sound Effects |
| 60 | +Enable or disable sound using the 🔊/🔇 toggle button on the top right. Custom tones are played for actions, selections, and feedback. |
| 61 | + |
| 62 | +## 📦 Technologies Used |
| 63 | +- HTML5 |
| 64 | +- CSS3 (Flexbox, Grid, Animations, Media Queries) |
| 65 | +- JavaScript (ES6+, DOM Manipulation, Web Audio API) |
| 66 | + |
| 67 | +## 📚 Educational Purpose |
| 68 | +Ideal for students, educators, and frontend developers who want to **see CSS in action** and interact with styling concepts beyond static tutorials. |
| 69 | + |
| 70 | +## 📌 License |
| 71 | +This project is open-source and free to use for learning and non-commercial purposes. |
0 commit comments