---
title: "Scroll Down Button"
description: "HTML CSS to create scroll down button with animation"
url: "https://www.geekboots.com/css/scroll-down-button"
markdown_url: "https://www.geekboots.com/css/scroll-down-button/md"
category: "CSS"
author: "Geekboots"
published: "2022-10-10"
updated: "2026-11-30T16:09:25.504Z"
tags: ["HTML", "CSS", "Scroll Down Button", "Arrow Animation", "Transform"]
---

# Scroll Down Button (CSS)

> HTML CSS to create scroll down button with animation

## Explanation



## Source Code

### scroll-down-button.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>Scroll Down/Up Arrow</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #292929;
        }

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

        .scrollBtn {
            width: 40px;
            height: 60px;
            border-radius: 20px;
            border: #fff solid 2px;
            position: relative;
        }

        .scrollBtn::before {
            position: absolute;
            content: '';
            width: 20px;
            height: 2px;
            background-color: #fff;
            left: 3px;
            top: 50%;
            transform: translateY(-50%) rotate(45deg);
            transition: 0.3s all ease;
        }

        .scrollBtn::after {
            position: absolute;
            content: '';
            width: 20px;
            height: 2px;
            background-color: #fff;
            right: 3px;
            top: 50%;
            transform: translateY(-50%) rotate(-45deg);
            transition: 0.3s all ease;
        }

        .scrollBtn:hover::before {
            transform: translateY(-50%) rotate(-45deg);
        }

        .scrollBtn:hover::after {
            transform: translateY(-50%) rotate(45deg);
        }

    </style>
</head>
<body>
    <section>
        <a href="" class="scrollBtn"></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/scroll-down-button)
