# GsapApi

interface in `@dioramajs/diorama/gsap`

```ts
import type { GsapApi } from '@dioramajs/diorama/gsap'
```

The `gsap` service.

```ts
interface GsapApi
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `driver` | `FrameDriver \| undefined` | The installed gsapDriver. Undefined when `ticker` is off or a deterministic driver was kept. |
| `scrollTrigger` | `ScrollTriggerStatic \| undefined` | The resolved ScrollTrigger, or undefined while it is not registered. |
| `pin` | `pin(trigger: ScrollTriggerLike, options?: PinOptions): Off` | Feeds a ScrollTrigger into the effects `pin` input of the targets. Wins over automatic pins. |
| `refresh` | `refresh(): void` | Re-binds automatic pins now, after DOM moves the plugin cannot see. |

Also exported from `@dioramajs/gsap`.

Defined in [packages/gsap/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/gsap/src/types.ts#L88).
