Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused ani stuff

  • Loading branch information...
commit a1119994298ef157323d8bb8bef8a7df106bec3c 1 parent 71247a5
@zk authored
Showing with 0 additions and 60 deletions.
  1. +0 −60 src/cljs/nsfw/ani.cljs
View
60 src/cljs/nsfw/ani.cljs
@@ -1,60 +0,0 @@
-(ns nsfw.ani
- (:require [nsfw.dom :as dom]
- [nsfw.util :as util]))
-
-(def frame (let [w js/window]
- (or (.-requestAnimationFrame w)
- (.-webkitRequestAnimationFrame w)
- (.-webkitRequestAnimationFrame w)
- (.-webkitRequestAnimationFrame w)
- (.-webkitRequestAnimationFrame w)
- (fn [f] (util/timeout f 17)))))
-
-(def perf (.-performance js/window))
-
-(def perf-now (and perf (or (.-now perf)
- (.-webkitNow perf)
- (.-msNow perf)
- (.-mozNow perf))))
-
-(def now (fn [] (.call perf-now perf)))
-
-(def html (.-documentElement js/document))
-
-(def unitless #{"lineHeight" "zoom" "zIndex" "opacity" "transform"})
-
-
-
-
- ; moz & spec
-
-(defn frame-repeat [f]
- (frame (fn [] (f) (frame-repeat f))))
-
-(defn cross
- [transition]
- {:-webkit-transition transition
- :-moz-transition transition
- :-o-transition transition
- :transition transition})
-
-(defn css
- "Animated attribute transitions."
- [el attr val]
- (dom/style el (merge (cross (format "%s 1000ms" (name attr)))
- {attr (str val "px")})))
-
-(def anims (atom []))
-
-(defn now [] (.now js/Date))
-
-(defn interpolate [src target pos]
- (+ source
- (* (- target src)
- pos)))
-
-(def parse-el (dom/$ [:div]))
-
-(def props (->> '[backgroundColor
- width]
- (map str)))
Please sign in to comment.
Something went wrong with that request. Please try again.