# Interface AnimationEvent<T>

currentTarget - a reference to the element on which the event listener is registered.

target - a reference to the element from which the event was originally dispatched. This might be a child element to the element on which the event listener is registered. If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682

interface AnimationEvent<T> {
animationName: string;
bubbles: boolean;
cancelable: boolean;
currentTarget: EventTarget & T;
defaultPrevented: boolean;
elapsedTime: number;
eventPhase: number;
isTrusted: boolean;
nativeEvent: AnimationEvent;
pseudoElement: string;
target: EventTarget;
timeStamp: number;
type: string;
isDefaultPrevented(): boolean;
isPropagationStopped(): boolean;
persist(): void;
preventDefault(): void;
stopPropagation(): void;
}

#### Type Parameters

- T = Element

#### Hierarchy (view full)

- SyntheticEvent<T, NativeAnimationEvent>
  - AnimationEvent

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2328

#####
Index

### Properties

animationName
bubbles
cancelable
currentTarget
defaultPrevented
elapsedTime
eventPhase
isTrusted
nativeEvent
pseudoElement
target
timeStamp
type

### Methods

isDefaultPrevented
isPropagationStopped
persist
preventDefault
stopPropagation

## Properties

### animationName

animationName: string

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2329

### bubbles

bubbles: boolean

Inherited from SyntheticEvent.bubbles

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2175

### cancelable

cancelable: boolean

Inherited from SyntheticEvent.cancelable

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2176

### currentTarget

currentTarget: EventTarget & T

Inherited from SyntheticEvent.currentTarget

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2173

### defaultPrevented

defaultPrevented: boolean

Inherited from SyntheticEvent.defaultPrevented

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2177

### elapsedTime

elapsedTime: number

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2330

### eventPhase

eventPhase: number

Inherited from SyntheticEvent.eventPhase

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2178

### isTrusted

isTrusted: boolean

Inherited from SyntheticEvent.isTrusted

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2179

### nativeEvent

nativeEvent: AnimationEvent

Inherited from SyntheticEvent.nativeEvent

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2172

### pseudoElement

pseudoElement: string

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2331

### target

target: EventTarget

Inherited from SyntheticEvent.target

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2174

### timeStamp

timeStamp: number

Inherited from SyntheticEvent.timeStamp

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2185

### type

type: string

Inherited from SyntheticEvent.type

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2186

## Methods

### isDefaultPrevented

- isDefaultPrevented(): boolean

- #### Returns boolean

  Inherited from SyntheticEvent.isDefaultPrevented

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2181

### isPropagationStopped

- isPropagationStopped(): boolean

- #### Returns boolean

  Inherited from SyntheticEvent.isPropagationStopped

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2183

### persist

- persist(): void

- #### Returns void

  Inherited from SyntheticEvent.persist

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2184

### preventDefault

- preventDefault(): void

- #### Returns void

  Inherited from SyntheticEvent.preventDefault

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2180

### stopPropagation

- stopPropagation(): void

- #### Returns void

  Inherited from SyntheticEvent.stopPropagation

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2182