kitlangton / animus   0.6.5

MIT License GitHub

An FRP animation library for Laminar

Scala versions: 3.x
Scala.js versions: 1.x

Animus

Release Artifacts Snapshot Artifacts

An FRP animation library for Laminar

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

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
  )