---
title: animateEntrance
---

# animateEntrance

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/ui/src/animation/animate-mixins.ts#L268" target="_blank">View Source</a>

## Summary

Animates an element when it is inserted into the DOM.

## Signature

```ts
function animateEntrance<target extends EventTarget>(
  config: AnimationConfig,
): MixinDescriptor<target, [AnimationConfig], ElementProps>;

```

## Params

### config

Entrance animation configuration.

## Returns

A mixin descriptor for the target element.