   one.sample.animation
   (:use [one.core :only (start)]
         [one.browser.animation :only (bind parallel serial play play-animation)]
-        [domina :only (by-id set-html! set-styles! destroy-children! append!)]
+        [domina :only (by-id set-html! set-styles! destroy-children! append! single-node)]
         [domina.xpath :only (xpath)])
   (:require [goog.dom.forms :as gforms]
             [goog.style :as style]))

  "Make the passed input field label invisible. Run when the input
  field loses focus and contains a valid input value."
  [label]
  (play label {:effect :fade :start 1 :end 0 :time 200}))

(def move-down [{:effect :fade :end 1 :time 200}
                {:effect :color :end "#BBC4D7" :time 200}

    (destroy-children! content)
    (set-html! content form-html)
    (append! content greeting-html)
    ;; Required for IE8 to work correctly
    (style/setOpacity (single-node (xpath label)) 1)
    (set-styles! (xpath cloud) {:opacity "0" :display "none" :margin-top "-500px"})
    (set-styles! (by-id "greet-button") {:opacity "0.2" :disabled true})
    (play form form-in {:after #(.focus (by-id "name-input") ())})))
