kutt/client/helpers/animations.ts
Pouria Ezzati 4680a0dbec
feat: refactor client and improve design (#260)
* refactor: (wip)

* refactor: finish settings, add icons and stuff

* 🐬

* 🐬

* 2.2.0
2020-01-02 20:09:59 +03:30

31 lines
440 B
TypeScript

import { keyframes } from "styled-components";
export const fadeInVertical = vertical => keyframes`
from {
opacity: 0;
transform: translateY(${vertical});
}
to {
opacity: 1;
transform: translateY(0);
}
`;
export const fadeIn = keyframes`
from {
opacity: 0;
}
to {
opacity: 1;
}
`;
export const spin = keyframes`
from {
transform: rotate(0);
}
to {
transform: rotate(-360deg);
}
`;