2018-10-04 15:31:26 +00:00
|
|
|
import { css } from 'styled-components';
|
|
|
|
|
|
|
|
const animationStyles = css`
|
|
|
|
.slide-left-enter {
|
|
|
|
transform: translate(100%);
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-left-enter.slide-left-enter-active {
|
|
|
|
transform: translate(0%);
|
|
|
|
transition: transform 300ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-left-exit {
|
|
|
|
transform: translate(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-left-exit.slide-left-exit-active {
|
|
|
|
transform: translate(0%);
|
|
|
|
transition: transform 300ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-right-enter {
|
|
|
|
transform: translate(-100%);
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-right-enter.slide-right-enter-active {
|
|
|
|
transform: translate(0%);
|
|
|
|
transition: transform 300ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-right-exit {
|
|
|
|
transform: translate(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-right-exit.slide-right-exit-active {
|
|
|
|
transform: translate(-200%);
|
|
|
|
transition: transform 300ms ease-in-out;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-04 12:33:02 +00:00
|
|
|
export default animationStyles;
|