---
title: "Button with Liquid Filling Effect"
description: "HTML CSS for liquid filling hover effect on button"
url: "https://www.geekboots.com/css/button-with-liquid-filling-effect"
markdown_url: "https://www.geekboots.com/css/button-with-liquid-filling-effect/md"
category: "CSS"
author: "Geekboots"
published: "2022-08-22"
updated: "2026-11-24T19:48:47.359Z"
tags: ["CSS", "HTML", "Button", "Liquid Filling Effect", "Liquid Button"]
---

# Button with Liquid Filling Effect (CSS)

> HTML CSS for liquid filling hover effect on button

## Explanation



## Source Code

### button-with-liquid-filling-effect.html

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Liquid Filling Effect on Button</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
        }

        body { background-color: #292929; }

        section {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100vh;
        }

        .btn {
            position: relative;
            padding: 10px 50px;
            border-radius: 30px;
            text-decoration: none;
            color: #292929;
            background-color: #ff081e;
            font-weight: bold;
            text-transform: uppercase;
            transition: 1s all ease-in-out;
            overflow: hidden;
        }

        .btn::before {
            position: absolute;
            content: '';
            width: 400px;
            height: 400px;
            background-color: #ececec;
            top: -370px;
            left: -120px;
            border-radius: 45%;
            transition: 2s all ease-in-out;
            animation: wave 10s infinite linear;
        }

        .btn::after {
            position: absolute;
            content: '';
            width: 400px;
            height: 400px;
            background-color: #ececec80;
            top: -360px;
            left: -125px;
            border-radius: 45%;
            transition: 2s all ease-in-out;
            animation: wave 9s infinite linear;
        }

        .btn span {
            position: relative;
            z-index: 1;
        }

        .btn:hover {
            color: #fff;
        }

        .btn:hover::before {
            top: -450px;
        }

        .btn:hover::after {
            top: -440px;
        }

        @keyframes wave {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
            
        }
        
    </style>
</head>
<body>
    <section>
        <a href="" class="btn">
            <span>
                Subscribe!
            </span>
        </a>
    </section>
</body>
</html>
```

## Related Code Examples

- [Understanding CSS Shadows: box-shadow vs drop-shadow](https://www.geekboots.com/css/understanding-css-shadows-box-shadow-vs-drop-shadow) ([Markdown](https://www.geekboots.com/css/understanding-css-shadows-box-shadow-vs-drop-shadow/md))
- [Attractive Mobile Responsive Navigation](https://www.geekboots.com/css/attractive-mobile-responsive-navigation) ([Markdown](https://www.geekboots.com/css/attractive-mobile-responsive-navigation/md))
- [Animated Bell Notification Icon](https://www.geekboots.com/css/animated-bell-notification-icon) ([Markdown](https://www.geekboots.com/css/animated-bell-notification-icon/md))
- [Cool Splash Image Effect in CSS](https://www.geekboots.com/css/cool-splash-image-effect-in-css) ([Markdown](https://www.geekboots.com/css/cool-splash-image-effect-in-css/md))
- [Edit Image with CSS filter](https://www.geekboots.com/css/edit-image-with-css-filter) ([Markdown](https://www.geekboots.com/css/edit-image-with-css-filter/md))
- [Menubar with Top Border Animations](https://www.geekboots.com/css/menubar-with-top-border-animations) ([Markdown](https://www.geekboots.com/css/menubar-with-top-border-animations/md))
- [Link Hover Animation](https://www.geekboots.com/css/link-hover-animation) ([Markdown](https://www.geekboots.com/css/link-hover-animation/md))
- [Menu Bar with Descriptive Menus](https://www.geekboots.com/css/menu-bar-with-descriptive-menus) ([Markdown](https://www.geekboots.com/css/menu-bar-with-descriptive-menus/md))

---
Source: [Geekboots](https://www.geekboots.com/css/button-with-liquid-filling-effect)
