@madeja-studio/telar
Version:
UI component library by Madeja Studio
20 lines (19 loc) • 346 B
JavaScript
;
import { to as rsto } from '@react-spring/native';
export const rotate = ({
from = 0,
to = 5
} = {}) => ({
from: {
rotation: from
},
style: values => ({
transform: [{
rotate: rsto(values.rotation, rotation => `${rotation}deg`)
}]
}),
to: {
rotation: to
}
});
//# sourceMappingURL=rotate.js.map