---
title: "Pin constraints animated icon"
description: "Pin constraints animated icon (Vector editing & design). The child is pinned to the container's left and top edges. Light: both pins pull back into the edges, then shoot out to the child in turn, left then top, and the child clicks into place with a pop when the second pin lands. Strong: the pins lock on faster and the child pops harder, then the container's top-left corner is dragged out and the pinned child rides along with its edges, springs back with it and settles. The container's bottom-right corner never moves."
canonical: https://generativeicons.com/icons/pin-constraints/
---

# Pin constraints animated icon

The child is pinned to the container's left and top edges. Light: both pins pull back into the edges, then shoot out to the child in turn, left then top, and the child clicks into place with a pop when the second pin lands. Strong: the pins lock on faster and the child pops harder, then the container's top-left corner is dragged out and the pinned child rides along with its edges, springs back with it and settles. The container's bottom-right corner never moves.

- Id: `pin-constraints`
- Category: Vector editing & design
- Search terms: pinning, anchor edges, anchoring, lock to edge, pin to edge, stick to edge, fix position, responsive resizing, layout constraints, resizing rules
- 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/pin-constraints.lottie (dotLottie, 4555 bytes, sha256 1ff9d4342d4558d895dedd8e7e1f7a27fd1889ca8eae160be0d99abf614c8d7c)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add pin-constraints
```

## React

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

export function PinConstraintsIcon() {
  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/pin-constraints.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/pin-constraints/ · https://generativeicons.com/api/icons/pin-constraints
