Rewrite animation with LESS loop

Still need some  work to deal with loop with @keyframe, see https://github.com/less/less.js/issues/1264 for more info