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