Skip to content

About

✨ Button Hover Animation Gallery — HTML/CSS/JS creative UI project.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Button Hover Animation

Live Demo HTML CSS JavaScript License: MIT

A complete responsive recreation of the uploaded 28.67-second screen recording.

Title shown in the video

Button Hover Animation

Ten effects and visible CSS patterns

  1. Fill Left — ::before begins at the left with width 0 and expands to 100%.
  2. Fill Right — ::before begins at the right with width 0 and expands to 100%.
  3. Fill Top — ::before starts at the top with height 0 and expands to 100%.
  4. Fill Bottom — ::before starts at the bottom with height 0 and expands to 100%.
  5. Expand Horizontal — centered pseudo-element expands horizontally using translateX(-50%).
  6. Expand Vertical — centered pseudo-element expands vertically using translateY(-50%).
  7. Radial Fill — circular pseudo-element grows from the center to 400×400px.
  8. Skew Right — wide skewed pseudo-element slides in from the left (skewX(45deg)).
  9. Skew Left — wide skewed pseudo-element slides in from the right (skewX(-45deg)).
  10. Split Doors — two pseudo-elements open from the left and right, each to 50% width.

The ten effect labels and their CSS declarations are legible in the screen recording and are included in the page. The rest of the page layout, styling, color variations, and touch interactions are recreated to make the examples runnable.

Run

  1. Extract the ZIP.
  2. Open index.html in a modern browser.
  3. Hover over each button to preview its animation.
  4. On touch devices, tap a button to toggle its effect. Press Escape to reset the selected button.

No npm, framework, build process, or external dependency is required.

Project files

  • index.html — ten examples and their CSS snippets
  • style.css — page layout and ten animated hover effects
  • script.js — touch/click and keyboard support
  • README.md — effect explanations and run instructions

👨‍💻 Author

mrchandrayee · GitHub

📄 License

MIT License

About

✨ Button Hover Animation Gallery — HTML/CSS/JS creative UI project.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages