<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationCalloutDelegate/calloutAppearanceAnimationForAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.AnnotationCalloutDelegate/calloutAppearanceAnimationForAnnotation"
  },
  "title" : "calloutAppearanceAnimationForAnnotation(annotation)"
}
-->

# calloutAppearanceAnimationForAnnotation(annotation)

Returns a CSS animation to use when the callout appears.

```
calloutAppearanceAnimationForAnnotation?(annotation: Annotation): string;
```

## Parameters

`annotation`

The annotation for the callout.

## Return Value

This method returns a string that describes the CSS animation to use for the callout appearance, just like the [`appearanceAnimation`](/documentation/MapKitJS/Annotation/appearanceAnimation) property of [`Annotation`](/documentation/MapKitJS/Annotation).

## Discussion

To animate a callout, MapKit JS calls this method on the annotation’s callout delegate with the annotation as a parameter. A standard callout (with or without custom content) uses a default animation if the callout doesn’t provide the appearance animation.

A callout that uses a custom element can animate only if it provides the appearance animation. The default animation doesn’t apply to callouts with custom elements.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)