---
title: "Text size animated icon"
description: "Text size animated icon (Accessibility & reading). One rounded letter A grows from reading size to large size on a fixed baseline and holds; reverse shrinks it."
canonical: https://generativeicons.com/icons/text-size/
---

# Text size animated icon

One rounded letter A grows from reading size to large size on a fixed baseline and holds; reverse shrinks it.

- Id: `text-size`
- Category: Accessibility & reading
- Search terms: font size, larger text, bigger text, large print, enlarge text, type size, increase font, dynamic type, font scaling, text zoom
- Two states: small to large, 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/text-size.lottie (dotLottie, 10884 bytes, sha256 ad04b56f50ad1be3578f37b600fb693d3ac6a0e8a3473d656418adf21a934360)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add text-size
```

## React

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

export function TextSizeIcon() {
  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/text-size.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/text-size/ · https://generativeicons.com/api/icons/text-size
