Cat/classes/CatKeyframe.js

14 lines
284 B
JavaScript

function CatKeyframe(rule, index) {
this.key = rule.keyText;
this.rules = {};
this.index = index;
for (var i = 0; i < rule.style.length; i++) {
this.rules[rule.style[i]] = {
value: rule.style[rule.style[i]],
index: i
}
}
}
module.exports = CatKeyframe;