Created
February 25, 2017 15:03
-
-
Save tmslnz/bb087966001d52b169e7ec54e99ba720 to your computer and use it in GitHub Desktop.
Revisions
-
tmslnz created this gist
Feb 25, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function getTranslate3d (el) { var values = el.style.transform.split(/\w+\(|\);?/); if (!values[1] || !values[1].length) { return []; } return values[1].split(/,\s?/g); }