2018-08-25 16:49:21 +00:00
|
|
|
import { keyframes } from 'styled-components';
|
|
|
|
import colors from 'config/colors';
|
|
|
|
|
|
|
|
export const ROTATE_180_UP = keyframes`
|
2018-08-25 16:56:24 +00:00
|
|
|
from {
|
|
|
|
transform: rotate(0deg)
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: rotate(180deg)
|
|
|
|
}
|
2018-08-25 16:49:21 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const ROTATE_180_DOWN = keyframes`
|
2018-08-25 16:56:24 +00:00
|
|
|
from {
|
|
|
|
transform: rotate(180deg)
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: rotate(0deg)
|
|
|
|
}
|
2018-08-25 16:49:21 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const DASH = keyframes`
|
|
|
|
0% {
|
|
|
|
stroke-dasharray: 1, 200;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -35;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -124;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const GREEN_COLOR = keyframes`
|
|
|
|
100%, 0% {
|
|
|
|
stroke: ${colors.GREEN_PRIMARY};
|
|
|
|
}
|
|
|
|
40% {
|
|
|
|
stroke: ${colors.GREEN_PRIMARY};
|
|
|
|
}
|
|
|
|
66% {
|
|
|
|
stroke: ${colors.GREEN_SECONDARY};
|
|
|
|
}
|
|
|
|
80%, 90% {
|
|
|
|
stroke: ${colors.GREEN_TERTIARY};
|
|
|
|
}
|
2018-08-25 16:56:24 +00:00
|
|
|
`;
|
|
|
|
|
2019-01-09 14:57:59 +00:00
|
|
|
export const WHITE_COLOR = keyframes`
|
|
|
|
0%, 100% {
|
|
|
|
stroke: white;
|
2019-01-09 14:02:38 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2018-08-25 16:56:24 +00:00
|
|
|
export const PULSATE = keyframes`
|
|
|
|
0%, 100% {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
2018-12-11 17:46:58 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const FADE_IN = keyframes`
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-01-21 15:51:52 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const SLIDE_DOWN = keyframes`
|
|
|
|
0% {
|
|
|
|
transform: translateY(-100%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0%);
|
|
|
|
}
|
2019-01-24 17:44:43 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const SLIDE_RIGHT = keyframes`
|
|
|
|
0% {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(0%);
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const SLIDE_LEFT = keyframes`
|
|
|
|
0% {
|
|
|
|
transform: translateX(0%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
2018-08-25 16:49:21 +00:00
|
|
|
`;
|