UNPKG

361 BJavaScriptView Raw
1var eases = require('eases')
2var inherits = require('inherits')
3var Base = require('./base')
4
5function BasicTimeline(data) {
6 if (!(this instanceof BasicTimeline))
7 return new BasicTimeline(data)
8 Base.call(this, data)
9}
10
11inherits(BasicTimeline, Base)
12
13BasicTimeline.prototype.ease = function(name, t) {
14 return eases[name](t)
15}
16
17module.exports = BasicTimeline
\No newline at end of file