burtlo/metro

View on GitHub
lib/metro/animation/easing/ease_in.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Metro
  class Easing

    #
    # Perform a ease-in motion between the start position and the final position.
    #
    class EaseIn < Easing
      def self.calculation(moment,start,change,interval)
        change * (moment = moment / interval) * moment + start
      end
    end

    register :ease_in, EaseIn
  end
end