A complete responsive recreation of the uploaded 28.67-second screen recording.
Button Hover Animation
- Fill Left —
::beforebegins at the left with width 0 and expands to 100%. - Fill Right —
::beforebegins at the right with width 0 and expands to 100%. - Fill Top —
::beforestarts at the top with height 0 and expands to 100%. - Fill Bottom —
::beforestarts at the bottom with height 0 and expands to 100%. - Expand Horizontal — centered pseudo-element expands horizontally using
translateX(-50%). - Expand Vertical — centered pseudo-element expands vertically using
translateY(-50%). - Radial Fill — circular pseudo-element grows from the center to 400×400px.
- Skew Right — wide skewed pseudo-element slides in from the left (
skewX(45deg)). - Skew Left — wide skewed pseudo-element slides in from the right (
skewX(-45deg)). - 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.
- Extract the ZIP.
- Open
index.htmlin a modern browser. - Hover over each button to preview its animation.
- 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.
index.html— ten examples and their CSS snippetsstyle.css— page layout and ten animated hover effectsscript.js— touch/click and keyboard supportREADME.md— effect explanations and run instructions
mrchandrayee · GitHub