Revert "transition everything".
That threw off calculations on resize. Now infer things to transition from the css object map.pull/160/head
parent
3b9e140a53
commit
dc0fe37e18
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Hyphenates a javascript style string to a css one. For example:
|
||||
* MozBoxSizing -> -moz-box-sizing.
|
||||
* @param {string} str The string to hyphenate.
|
||||
* @return {string} The hyphenated string.
|
||||
*/
|
||||
export default function hyphenate(str) {
|
||||
return str.replace(/([A-Z])/g, (str, m1) => `-${m1.toLowerCase()}`);
|
||||
}
|
Loading…
Reference in New Issue