Skip to content

✨ A stylish animated Submit button created using HTML, CSS, and JavaScript. Features a ripple-like vertical line animation triggered on hover, using 120 dynamically generated span elements. Fully responsive and perfect for creative UI effects and button interaction design.

Notifications You must be signed in to change notification settings

daminenis3/submitbutton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🔘 Animated Submit Button – HTML & CSS

This project demonstrates a visually engaging animated submit button using only HTML and CSS. The design focuses on creative UI interaction and is ideal for modern web forms, landing pages, or UI experiments.

🎯 Project Goal

To create an animated button that visually reacts when hovered, drawing attention and enhancing the overall user experience — without using JavaScript or external libraries.

✨ Key Features

📌 Built with pure HTML and CSS (no JavaScript)

📦 Lightweight and fast to load

🎞️ Uses span elements to generate a 3D animation effect

🧱 Responsive design

🎯 Centered layout for standalone viewing or easy integration

🎨 Customizable styles for color, size, and animation

📂 Files Included

index.html: Contains the HTML structure of the button

style.css: Contains all the styling, animation logic, and layout control

🧩 How It Works

index.html A element contains 120 tags inside.

Each represents a small animated line that contributes to the ripple/line effect.

The button is labeled "Submit" using a

tag inside the button.

style.css CSS grid or flexbox centers the button on screen.

Animation is handled using @keyframes to stagger the entry of each span on hover.

CSS nth-child() selector is used to delay and style each span uniquely.

🚀 How to Use

Clone or download the repository

Open index.html in your browser

Hover over the button to see the animation

Customize colors, timing, or layout in style.css

🛠 Technologies Used

✅ HTML5

✅ CSS3 (no JavaScript required)

✅ Responsive design principles

✅ Pure CSS animation

💡 Customization Tips

Change the number of tags to adjust complexity

Modify :hover animation timing or easing functions

Adjust button label text (e.g., "Login", "Go", "Send")

Embed the button into forms or landing pages

📚 Learning Outcomes

Working with pseudo-3D CSS animation

Mastering nth-child for sequenced styling

Organizing animation logic without scripting

Building interactive UI elements with HTML/CSS only

🧪 Testing Checklist

✅ Button renders centered on desktop

✅ Animations trigger correctly on hover

✅ All 120 spans display without breaking layout

✅ Fully responsive in modern browsers (Chrome, Firefox, Edge)

🌐 Deployment

You can easily host this on:

GitHub Pages

Netlify

Vercel

Any static file host

🔮 Future Improvements

Add sound feedback or click animation

Integrate into form submission logic

Add dark mode styling

Allow user-defined animation speed

📄 License

MIT License – Free to use, modify, and distribute with credit.

🙋‍♂️ Author

GitHub:daminens3

Project Type: Frontend UI/UX – Animated Button

About

✨ A stylish animated Submit button created using HTML, CSS, and JavaScript. Features a ripple-like vertical line animation triggered on hover, using 120 dynamically generated span elements. Fully responsive and perfect for creative UI effects and button interaction design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published