Skip to content

shiwans-k-yadav/gradient_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌈 Gradient Generator

An interactive Gradient Generator built using HTML, CSS, and JavaScript to strengthen DOM manipulation and event handling concepts.


πŸ“– About The Project

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.


πŸš€ Features

  • 🎨 Random HEX color generation
  • 🌈 Dynamic linear-gradient background updates
  • ⚑ Real-time DOM manipulation
  • πŸ“‹ One-click clipboard copy functionality
  • πŸ–± Interactive button-based UI

πŸ›  Tech Stack

HTML – Structure
CSS – Styling & transitions
JavaScript – Logic & interactivity


🧠 Concepts Practiced

  • Using addEventListener()
  • DOM manipulation
  • Dynamic style updates using JavaScript
  • Generating random values
  • Template literals for dynamic CSS
  • Clipboard API implementation
  • Understanding the difference between:
    • innerText
    • innerHTML
    • textContent

🎯 Purpose

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.

About

🌈 Gradient Generator A simple yet interactive Gradient Generator built using HTML, CSS, and JavaScript to strengthen my understanding of DOM manipulation and event handling in JavaScript. This project dynamically generates random HEX colors. Users can generate new color combinations and copy the gradient code directly to the clipboard for reuse.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors