# Ripple

> An animated ripple effect typically used behind elements to emphasize them.  Add the following animations to your tailwind.config.js file:     extend: {       animation: {         ripple: "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",       },       keyframes: {         ripple: {           "0%, 100%": {             transform: "translate(-50%, -50%) scale(1)",           },           "50%": {             transform: "translate(-50%, -50%) scale(0.9)",           },         },       },     },

- Author: [Dillion Verma](https://21st.dev/@dillionverma)
- Library: [Magic UI](https://21st.dev/@dillionverma/library/magic-ui)
- License: mit
- Tags: Ripple
- Live preview: https://21st.dev/@dillionverma/components/ripple

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dillionverma/ripple?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/ripple.md
