Fade Out Down Animation Effect with CSS

The fade out down animation effect makes an element gradually disappear while moving downward. This creates a smooth exit animation that combines opacity reduction with downward translation.

Syntax

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(distance);
    }
}

.element {
    animation: fadeOutDown duration ease;
}

Example

The following example demonstrates the fade out down animation effect −

<!DOCTYPE html>
<html>
<head>
<style>
    .animated-box {
        width: 200px;
        height: 100px;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 50px auto;
        font-size: 18px;
        font-weight: bold;
        border-radius: 10px;
        animation: fadeOutDown 3s ease-in-out;
    }

    @keyframes fadeOutDown {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(30px);
        }
    }

    .restart-btn {
        display: block;
        margin: 20px auto;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
</style>
</head>
<body>
    <div class="animated-box">Fade Out Down</div>
    <button class="restart-btn" onclick="location.reload()">Restart Animation</button>
</body>
</html>
A colorful gradient box with "Fade Out Down" text appears and gradually fades out while moving downward over 3 seconds. A blue "Restart Animation" button allows you to replay the effect.

Key Properties

Property Purpose
opacity Controls the transparency from 1 (visible) to 0 (invisible)
transform: translateY() Moves the element vertically downward
animation-duration Sets how long the animation takes to complete
animation-timing-function Controls the speed curve (ease, linear, ease-in-out, etc.)

Conclusion

The fade out down animation combines opacity and transform properties to create a smooth exit effect. Adjust the translateY distance and duration to customize the animation speed and movement range.

Updated on: 2026-03-15T11:30:25+05:30

197 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements