Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Really really ugly code for animation effect. Don't copy this.
  2.         if (typeof(WebKitCSSMatrix) == "object") {
  3.           menuDiv.style.visibility = 'hidden';
  4.           reader.showControl(tocMenu);
  5.           menuDiv.style.webkitTransition = "";
  6.           menuDiv.style.webkitTransform = "translateX(-100%)";
  7.           setTimeout(
  8.             function () {
  9.               menuDiv.style.visibility = 'visible';
  10.               menuDiv.style.webkitTransition = "-webkit-transform 300ms linear";
  11.               menuDiv.style.webkitTransform = "translateX(0px)";
  12.             },
  13.             10
  14.           );
  15.         } else {
  16.           reader.showControl(tocMenu);
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement