Created
December 29, 2016 08:36
-
-
Save suhaotian/b25bfa5fe1523cb04cea78475f275ab6 to your computer and use it in GitHub Desktop.
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 toCapitalize(string) { | |
return string.charAt(0).toUpperCase() + string.slice(1) | |
} | |
function css3(transform, value) { | |
const obj = {} | |
obj[`webKit${toCapitalize(transform)}`] = obj[transform] = value | |
return obj | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment