Skip to content

kitlangton/animus

Repository files navigation

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
  )