hacky fork to use classes instead of inline styles, because swipe.js sets them in an order that causes a positioning bug with transforms.