I recently discovered velocity.js, which is really great. I am animating a pretty big SVG graphic, which slides through the screen (about 5k px width). It looks somehow like this:
$($(element)[index]).velocity({
translateX: [-distanceMove],
translateZ : 0
}, {
duration: 60000,
easing: "linear"
});
However, I experience little (really minor) lags in all browsers. Does anyone know how to get rid of these? I am guessing it could be the size of the SVG. Should I cut it into pieces? Would that make a difference?
cheers,