Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitlangton/animus
An FRP animation library for Laminar
https://github.com/kitlangton/animus
Last synced: 4 days ago
JSON representation
An FRP animation library for Laminar
- Host: GitHub
- URL: https://github.com/kitlangton/animus
- Owner: kitlangton
- License: mit
- Created: 2020-12-05T02:50:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T22:39:53.000Z (4 months ago)
- Last Synced: 2024-10-11T08:44:38.388Z (3 months ago)
- Language: Scala
- Homepage:
- Size: 3.14 MB
- Stars: 95
- Watchers: 6
- Forks: 10
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Animus
[![Release Artifacts][Badge-SonatypeReleases]][Link-SonatypeReleases]
[![Snapshot Artifacts][Badge-SonatypeSnapshots]][Link-SonatypeSnapshots]An FRP animation library for Laminar
```sbt
// build.sbt
libraryDependencies += "io.github.kitlangton" %%% "animus" % "0.5.1"
```[Silly Demos](https://animus-examples.surge.sh)
## Example
```scala
import animus._val $left: Signal[Double] = EventStream.periodic(1000).toSignal(0).mapToValue(Random.nextDouble() * 1000)
val animatedBox =
div(
width("100px"),
height("100px"),
position.relative,
left <-- $left.spring.px
)
```[Badge-SonatypeReleases]: https://img.shields.io/nexus/r/https/oss.sonatype.org/io.github.kitlangton/animus_3.svg "Sonatype Releases"
[Badge-SonatypeSnapshots]: https://img.shields.io/nexus/s/https/oss.sonatype.org/io.github.kitlangton/animus_3.svg "Sonatype Snapshots"
[Link-SonatypeSnapshots]: https://oss.sonatype.org/content/repositories/snapshots/io/github/kitlangton/animus_3/ "Sonatype Snapshots"
[Link-SonatypeReleases]: https://oss.sonatype.org/content/repositories/releases/io/github/kitlangton/animus_3/ "Sonatype Releases"