Skip to content

An interactive web animation featuring a dynamic gradient effect triggered by a button click. The gradient smoothly expands, and the button text updates in real time. Built using HTML, CSS, and JavaScript, this project delivers a visually appealing and responsive design. πŸš€

Notifications You must be signed in to change notification settings

Short-Zed/Web3Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Apple Intelligence Animated Gradient

An interactive web animation showcasing an animated gradient effect triggered by a button click. The gradient expands when clicked, and the button text updates dynamically.

πŸš€ Live Demo

Check out the live version: Apple Intelligence Gradient

πŸ“Έ Preview

Project Preview (Replace with an actual screenshot)

πŸ”Ή Features

  • Animated Gradient: A visually appealing gradient expands on button click.
  • Dynamic Button Text: Button text toggles between "Click Me" and "Bye!!".
  • Smooth Transitions: CSS animations for a seamless user experience.
  • Responsive Design: Works across various screen sizes.

πŸ“‚ Folder Structure

πŸ“ Apple-Intelligence-Gradient
β”‚-- πŸ“‚ assets  (Contains images, icons, etc.)
β”‚-- πŸ“‚ css  (Contains index.css)
β”‚-- πŸ“‚ js  (Contains index.js)
β”‚-- index.html  (Main HTML file)
β”‚-- README.md  (Project Documentation)

πŸ› οΈ Technologies Used

  • HTML5: Page structure
  • CSS3: Styling & animations
  • JavaScript: Dynamic interactions

πŸ“œ Code Overview

πŸ–Ό HTML Structure (index.html)

<button class="run_btn control_btns">Click Me</button>

🎨 CSS Styling (index.css)

.intelligence_gradient_container > span {
    background-image: linear-gradient(90deg, #89aaf8, #b770fc, #d24dc3, #e85560, #ee7b6b);
    background-size: 0% 0%;
    transition: all 1.2s ease-in-out;
}

🎬 JavaScript Functionality (index.js)

run_btn.addEventListener("click", (event) => {
    if (trigger) {
        gradient_line.style.backgroundSize = "100% 20%";
        event.target.innerText = "Bye!!";
        trigger = false;
    } else {
        gradient_line.style.backgroundSize = "100% 0%";
        event.target.innerText = "Click Me";
        trigger = true;
    }
});

πŸ“Œ Setup & Usage

  1. Clone the repository:
    git clone https://github.com/Short-Zed/Web3Task.git
  2. Open index.html in a browser.
  3. Click the button to see the animation in action!

πŸ“œ License

This project is open-source and available under the MIT License.

πŸ“ž Contact

For suggestions or issues, feel free to reach out via GitHub Issues.

About

An interactive web animation featuring a dynamic gradient effect triggered by a button click. The gradient smoothly expands, and the button text updates in real time. Built using HTML, CSS, and JavaScript, this project delivers a visually appealing and responsive design. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published