Skip to content

Instantly share code, notes, and snippets.

@pilssalgi
Created April 30, 2018 08:54
Show Gist options
  • Save pilssalgi/cd258d070173de0627136cf8d76bb785 to your computer and use it in GitHub Desktop.
Save pilssalgi/cd258d070173de0627136cf8d76bb785 to your computer and use it in GitHub Desktop.
translate3d function
function translate3d(dom,x,y,z){
dom.style.transform = "translate3d("+x+","+y+","+z+")";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment