Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this plugin support the css transform? #218

Closed
dl988 opened this issue Nov 17, 2021 · 2 comments
Closed

Does this plugin support the css transform? #218

dl988 opened this issue Nov 17, 2021 · 2 comments

Comments

@dl988
Copy link

dl988 commented Nov 17, 2021

Hi, I got some trouble to get prefixes with transform css object like this:

style = { 
  transform:  [  
    'scale(1.1)'  
    'rotate(12deg)'  
    'translateX(10px)'  
    'translateY(-1px)'  
    'skewX(14deg)'  
    'skewY(-4deg)'  
  ]
}

or style = {
 transform: 'scale(1.1) rotate(12deg) translate(10px, 1px) skew(14deg, -3deg)'
}
 `

The results of `output = prefix(style)`  is the same with the input,  Did I make the wrong input?
@robinweser
Copy link
Owner

Nop! You‘re doing it right. It‘s just that transform doesn’t need any prefixes nowadays. All major browsers fully support it (even IE10 did)

@dl988
Copy link
Author

dl988 commented Nov 17, 2021

Ah, thank you for the quick answer @robinweser

@dl988 dl988 closed this as completed Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants