Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mRender() {
- var t = new Date().getTime() - mAnimstart;
- if (t > mtf)
- t = mtf;
- var deg = d_mod(mvi, t);
- mView(deg);
- if (t < mtf) {
- requestAnimationFrame(mRender);
- } else {
- mSnapX = deg;
- boxIsMoving = false;
- }
- }
- function mView(offset) {
- offset = -((offset + 1050 - CASEW / 2) % 1050);
- $MBOX01.css("background-position", offset + "px 0px");
- $MBOX02.css("background-position", offset + "px 0px");
- $MBOX03.css("background-position", offset + "px 0px");
- $MBOX04.css("background-position", offset + "px 0px");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement