Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Clojure library designed to tween a value between two points.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 project.clj


A Clojure library designed to tween a value between two points.

Inbetweening or tweening is the process of generating intermediate points between two points.

Build Status


Simply add this to your leiningen deps: [tween-clj "0.4.0"]

The tweening interface defines two main concepts. Transition functions and easing functions.

The transition function defines how a value transitions between two states. There are several transition functions to choose from.

The easing function defines how the transition proceeds. You can ease into a transition (with ease-in) or out of a transition (with ease-out) or even both with east-in-out.

An example:

(map (partial ease-in transition-elastic) 
     [0 0.1 0.2 0.5 0.9 1])

Available transition types:

  • transition-linear
  • transition-pow
  • transition-expo
  • transition-sine
  • transition-circ
  • transition-back
  • transition-bounce
  • transition-elastic


Copyright © 2012 Glen Stampoultzis

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.