/reflex-animated

AnimationFrame and Pointer events in the reflex framework

Primary LanguageHaskellMIT LicenseMIT

reflex-animated

AnimationFrame and Pointer events using reflex framework.

The library provides a simple and fast interface for rendering animated objects and interacting with a user. It combines JS mouse, touch, and pointer events in a unified Haskell interface, which simplifies desktop-mobile compatibility. Lastly, it encapsulates requestAnimationFrame mechanics into simple play-pause interface, allowing to peform rendering either via a direct rendering callback or using dedicated events.

Using with stack

This repository includes stack configuration for a manually crafted GHCJS snapshot based on lts-8.21, it comes with no warranty. Make sure you have installed alex, happy, and any other programs required by GHCJS. If this is done well, stack build --install-ghc should work.