Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions submissions/examples/liquid-wave-button-55580/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Liquid Wave Button

## What does this do?
Adds a liquid/wave hover effect to buttons. On hover, a pseudo-element fills the button from the bottom upwards like rising water, rotating to create a dynamic wave effect.

## How is it used?
```html
<button class="ease-btn ease-btn-liquid">Liquid Wave 🌊</button>
```

## Why does it fit EaseMotion CSS?
It provides a high-quality, pure CSS micro-animation that feels engaging and natural without relying on any JavaScript listeners.

## Tech Stack
- HTML
- CSS (No JavaScript)
37 changes: 37 additions & 0 deletions submissions/examples/liquid-wave-button-55580/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Liquid Wave Button Demo</title>
<link rel="stylesheet" href="../../../easemotion.css">
<link rel="stylesheet" href="style.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f8fafc;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.container {
display: flex;
gap: 20px;
}
.ease-btn {
padding: 12px 24px;
font-size: 1rem;
font-weight: 500;
border-radius: 8px;
cursor: pointer;
outline: none;
}
</style>
</head>
<body>
<div class="container">
<button class="ease-btn ease-btn-liquid">Liquid Wave 🌊</button>
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions submissions/examples/liquid-wave-button-55580/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.ease-btn-liquid {
position: relative;
overflow: hidden;
z-index: 1;
background-color: var(--ease-color-primary, #6366f1);
color: #fff;
border: none;
transition: color 0.4s ease;
}

.ease-btn-liquid::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
width: 200%;
height: 200%;
background-color: rgba(255, 255, 255, 0.2);
transform: translate(-50%, 0) rotate(0deg);
border-radius: 40%;
z-index: -1;
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-btn-liquid:hover::after {
transform: translate(-50%, -100%) rotate(180deg);
}
Loading