kitlangton / animus

An FRP animation library for Laminar

Version Matrix

Animus

Release Artifacts Snapshot Artifacts

An FRP animation library for Laminar

// build.sbt
libraryDependencies += "io.github.kitlangton" %%% "animus" % "0.1.5"

Silly Demos

Example

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
  )