---
title: "Credit card animated icon"
description: "Credit card animated icon (Tools). Tap to pay. Light: the rigid card dips onto the reader and holds the tap; two contactless waves draw on above it from the centre outward, inner then outer, and fade before the card lifts back with a small overshoot. Strong: a firmer tap that bounces once on contact and holds while the waves signal twice, then a clear rebound on release. The reader never moves."
canonical: https://generativeicons.lottiefiles.com/icons/credit-card/
---

# Credit card animated icon

Tap to pay. Light: the rigid card dips onto the reader and holds the tap; two contactless waves draw on above it from the centre outward, inner then outer, and fade before the card lifts back with a small overshoot. Strong: a firmer tap that bounces once on contact and holds while the waves signal twice, then a clear rebound on release. The reader never moves.

- Id: `credit-card`
- Category: Tools
- Search terms: debit card, payment card, bank card, card payment, pay by card, payment method, add card, card details, visa, mastercard, amex, billing
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.lottiefiles.com/assets/credit-card.lottie (dotLottie, 4419 bytes, sha256 fc3384b02e7b906f8ce24ace8298113f10bcd56053e28224fe39fe5f3e33b367)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add credit-card
```

## React

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

export function CreditCardIcon() {
  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/credit-card.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.lottiefiles.com/icons/credit-card/ · https://generativeicons.lottiefiles.com/api/icons/credit-card
