mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-23 00:13:24 +01:00
49 lines
849 B
JavaScript
49 lines
849 B
JavaScript
|
import { createGlobalStyle } from 'styled-components';
|
||
|
|
||
|
const GlobalStyle = createGlobalStyle`
|
||
|
@keyframes fade-in {
|
||
|
from {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
to {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes fade-out {
|
||
|
from {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
to {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes fade-and-slide-in-from-top {
|
||
|
from {
|
||
|
opacity: 0;
|
||
|
-webkit-transform: translateY(-30px);
|
||
|
transform: translateY(-30px);
|
||
|
}
|
||
|
to {
|
||
|
opacity: 1;
|
||
|
-webkit-transform: none;
|
||
|
transform: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes fade-and-slide-out-from-top {
|
||
|
from {
|
||
|
opacity: 1;
|
||
|
-webkit-transform: none;
|
||
|
transform: none;
|
||
|
}
|
||
|
to {
|
||
|
opacity: 2;
|
||
|
-webkit-transform: translateY(-30px);
|
||
|
transform: translateY(-30px);
|
||
|
}
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
export default GlobalStyle;
|