Created
          February 25, 2017 15:02 
        
      - 
      
 - 
        
Save tmslnz/38190134b5ff5066e0bfc8b8f09789ee to your computer and use it in GitHub Desktop.  
    Get list of transform props
  
        
  
    
      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 characters
    
  
  
    
  | function getTransforms (el) { | |
| var values = []; | |
| var re = /\w+\(.+?\)/gi; | |
| var match = []; | |
| while ((match = re.exec(el.style.transform)) !== null) { | |
| values.push(match[0]); | |
| } | |
| return values; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment