Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.12 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.12 KB

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
  )