---
title: SCNAnimationEvent
framework: scenekit
role: symbol
role_heading: Class
path: scenekit/scnanimationevent
---

# SCNAnimationEvent

A container for a closure, a block in Objective-C, to be executed at a specific time during playback of an animation.

## Declaration

```swift
class SCNAnimationEvent
```

## Overview

Overview Use animation events to add actions to animations, such as playing a sound to coincide with the movement of an animated character, or removing a node from the scene after playing an animation that fades out its visible geometry. After you create an animation event, you attach it to an animation object using the object’s animationEvents property.

## Topics

### Creating an Animation Event

- [init(keyTime:block:)](scenekit/scnanimationevent/init(keytime:block:).md)

### Constants

- [SCNAnimationEventBlock](scenekit/scnanimationeventblock.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Explicit Animation

- [SCNAnimatable](scenekit/scnanimatable.md)
- [SCNAnimation](scenekit/scnanimation-swift.class.md)
- [SCNAnimationPlayer](scenekit/scnanimationplayer.md)
- [SCNTimingFunction](scenekit/scntimingfunction.md)
- [SCNAnimationProtocol](scenekit/scnanimationprotocol.md)
- [SCNAnimation](scenekit/scnanimation-swift.class.md)
