Perform Animation on CSS border-bottom-right-radius property

The CSS border-bottom-right-radius property creates rounded corners on the bottom-right of an element. You can animate this property to create smooth transitions between different radius values, providing dynamic visual effects.

Syntax

selector {
    border-bottom-right-radius: value;
    animation: animation-name duration timing-function iteration-count;
}

@keyframes animation-name {
    from { border-bottom-right-radius: initial-value; }
    to { border-bottom-right-radius: final-value; }
}

Example

The following example demonstrates how to animate the border-bottom-right-radius property −

<!DOCTYPE html>
<html>
<head>
<style>
    .animated-box {
        width: 300px;
        height: 200px;
        background-color: #3498db;
        border: 5px solid #2980b9;
        border-bottom-right-radius: 10px;
        animation: radiusAnimation 3s infinite alternate;
        margin: 50px auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        font-weight: bold;
    }
    
    @keyframes radiusAnimation {
        0% {
            border-bottom-right-radius: 10px;
            background-color: #3498db;
        }
        50% {
            border-bottom-right-radius: 80px;
            background-color: #e74c3c;
        }
        100% {
            border-bottom-right-radius: 150px;
            background-color: #2ecc71;
        }
    }
</style>
</head>
<body>
    <h2>Animated Border Bottom Right Radius</h2>
    <div class="animated-box">Watch the Corner!</div>
</body>
</html>
A blue box with text "Watch the Corner!" appears. The bottom-right corner smoothly animates from a small 10px radius to a large 150px radius, while the background color transitions from blue to red to green. The animation repeats back and forth continuously.

Key Points

  • The animation smoothly transitions between different radius values
  • You can combine radius animation with other properties like background color
  • Use alternate direction to create a back-and-forth effect
  • The property accepts length values (px, em, rem) and percentages

Conclusion

Animating the border-bottom-right-radius property creates smooth corner transitions that enhance user interface dynamics. Combine it with other animated properties for more complex visual effects.

Updated on: 2026-03-15T13:16:11+05:30

65 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements