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.
Check out the live version: Apple Intelligence Gradient
(Replace with an actual screenshot)
- 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.
π 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)
- HTML5: Page structure
- CSS3: Styling & animations
- JavaScript: Dynamic interactions
<button class="run_btn control_btns">Click Me</button>
.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;
}
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;
}
});
- Clone the repository:
git clone https://github.com/Short-Zed/Web3Task.git
- Open
index.html
in a browser. - Click the button to see the animation in action!
This project is open-source and available under the MIT License.
For suggestions or issues, feel free to reach out via GitHub Issues.