https://github.com/achirkin/reflex-animated
AnimationFrame and Pointer events in the reflex framework
https://github.com/achirkin/reflex-animated
frp haskell reactive reflex
Last synced: 6 months ago
JSON representation
AnimationFrame and Pointer events in the reflex framework
- Host: GitHub
- URL: https://github.com/achirkin/reflex-animated
- Owner: achirkin
- License: mit
- Created: 2017-07-20T12:56:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T10:30:15.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T19:53:24.001Z (8 months ago)
- Topics: frp, haskell, reactive, reflex
- Language: Haskell
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reflex-animated
AnimationFrame and Pointer events using [reflex framework](https://github.com/reflex-frp/reflex).
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](https://github.com/ghcjs/ghcjs/tree/ghc-8.0#installation).
If this is done well, `stack build --install-ghc` should work.