Installed

elm/browser
1.0.2
elm/core
1.0.5
elm/html
1.0.0
evancz/elm-playground
1.0.3

Registry

elm/http
2.0.0
elm/random
1.0.0
elm/time
1.0.0
elm/file
1.0.5
elm/json
1.1.3
elm/svg
1.0.1
elm-explorations/webgl
1.1.3
w0rm/elm-physics
5.1.3
rtfeldman/elm-css
18.0.0
mdgriffith/elm-ui
1.1.8
​x
 
1
-- Create animations that spin, wave, and zig-zag.
2
-- This one is a little red wagon bumping along a dirt road.
3
--
4
-- Learn more about the playground here:
5
--   https://package.elm-lang.org/packages/evancz/elm-playground/latest/
6
--
7
​
8
import Playground exposing (..)
9
​
10
​
11
main =
12
  animation view
13
​
14
​
15
view time =
16
  [ octagon darkGray 36
17
      |> moveLeft 100
18
      |> rotate (spin 3 time)
19
  , octagon darkGray 36
20
      |> moveRight 100
21
      |> rotate (spin 3 time)
22
  , rectangle red 300 80
23
      |> moveUp (wave 50 54 2 time)
24
      |> rotate (zigzag -2 2 8 time)
25
  ]