Module: Tween::Back::Out

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

.ease(t, st, ch, d, s = 1.70158) ⇒ Object



152
153
154
# File 'lib/tween.rb', line 152

def self.ease(t, st, ch, d, s=1.70158)
  ch * ((t=t/d-1) * t * ((s+1) * t + s) + 1) + st
end