An interactive Gradient Generator built using HTML, CSS, and JavaScript to strengthen DOM manipulation and event handling concepts.
This project dynamically generates random HEX colors and applies them as a linear-gradient background to the webpage. Users can generate new color combinations with a single click and copy the gradient CSS code directly to the clipboard for reuse.
- π¨ Random HEX color generation
- π Dynamic linear-gradient background updates
- β‘ Real-time DOM manipulation
- π One-click clipboard copy functionality
- π± Interactive button-based UI
HTML β Structure
CSS β Styling & transitions
JavaScript β Logic & interactivity
- Using
addEventListener() - DOM manipulation
- Dynamic style updates using JavaScript
- Generating random values
- Template literals for dynamic CSS
- Clipboard API implementation
- Understanding the difference between:
innerTextinnerHTMLtextContent
This project was created as a hands-on practice project while learning JavaScript. It helped me understand how to connect logic with UI and build interactive web experiences.
β Built to learn. Designed to experiment. Crafted to grow.