Skip to content

Commit

Permalink
kotlin-css - add docs for transform, animation, etc #2583
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonya committed Oct 17, 2024
1 parent cfa70dc commit 277611e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kotlin-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ val styles = CssBuilder().apply {
body {
margin = Margin(0.px)
padding = Padding(0.px)

animation(
duration = 500.ms,
iterationCount = IterationCount.infinite,
fillMode = FillMode.backwards,
direction = AnimationDirection.alternate,
) {
to {
backgroundPosition = RelativePosition.left
}
}

backgroundImage = linearGradient(90.deg) {
colorStop(Color.black)
colorStop(Color.transparent)
}

transform {
translateY(0.px)
}
}
}

Expand Down

0 comments on commit 277611e

Please sign in to comment.