UNPKG

@smoud/tiny

Version:

Fast and tiny JavaScript library for HTML5 game and playable ads creation.

17 lines (14 loc) 354 B
Tiny.Cache.keyframes = {}; Tiny.Loader.prototype.keyframes = function (key, src) { if (src) { this.list.push({ key: key, src: src, type: 'keyframes' }); } }; Tiny.Loader.keyframes = function (resource, cb) { Tiny.Cache.keyframes[resource.key] = resource.src; cb(); };