---
title: "Corner radius animated icon"
description: "Corner radius animated icon (Drawing & design tools). Light: the square's corners round from sharp to a 6-unit radius in 0.5 s while the radius handle slides inward along the diagonal. Strong: the radius snaps past 7 and settles at 6. Reverse sharpens the corners."
canonical: https://generativeicons.com/icons/corner-radius/
---

# Corner radius animated icon

Light: the square's corners round from sharp to a 6-unit radius in 0.5 s while the radius handle slides inward along the diagonal. Strong: the radius snaps past 7 and settles at 6. Reverse sharpens the corners.

- Id: `corner-radius`
- Category: Drawing & design tools
- Search terms: rounded corners, round corners, border radius, rounding, fillet, round edges, smooth corners, rounded rectangle, roundness, corner smoothing, squircle
- Two states: sharp to rounded, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/corner-radius.lottie (dotLottie, 22033 bytes, sha256 0b58e75779666ca23a7ccbccce1f0b366ae22d007f1ff4e831ea3b76e4bf689f)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add corner-radius
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/corner-radius.mjs';

export function CornerRadiusIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/corner-radius.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/corner-radius/ · https://generativeicons.com/api/icons/corner-radius
