Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"