---
title: "Square snake animated icon"
description: "Square snake animated icon (Loading indicators). A short stroke follows a drafted square circuit."
canonical: https://generativeicons.com/icons/square-snake/
---

# Square snake animated icon

A short stroke follows a drafted square circuit.

- Id: `square-snake`
- Category: Loading indicators
- Search terms: loading, loader, snake loader, square loader, box loader, border trace, busy, please wait, processing, activity indicator
- 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.com/assets/square-snake.lottie (dotLottie, 239887 bytes, sha256 846f25dd9601ccf6ecdb906f120ef52552d3ac5c5a9d1dcf9a35803edc20abc4)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add square-snake
```

## React

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

export function SquareSnakeIcon() {
  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/square-snake.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/square-snake/ · https://generativeicons.com/api/icons/square-snake
