Module

Hylograph.Transition.RAF

Package
purescript-hylograph-transitions
Repository
afcondon/purescript-hylograph-transitions

RequestAnimationFrame bindings

Provides browser animation frame timing for tick-based animations.

#AnimationFrameId Source

data AnimationFrameId

Opaque ID for a scheduled animation frame

#Timestamp Source

type Timestamp = Number

High-resolution timestamp in milliseconds

#requestAnimationFrame Source

requestAnimationFrame :: (Timestamp -> Effect Unit) -> Effect AnimationFrameId

Schedule a callback for the next animation frame.

#cancelAnimationFrame Source

cancelAnimationFrame :: AnimationFrameId -> Effect Unit

Cancel a scheduled animation frame.

#performanceNow Source

performanceNow :: Effect Timestamp

Get current high-resolution timestamp.