aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-29 01:28:42 +0100
committerGravatar Joe Banks <[email protected]>2020-09-29 01:28:42 +0100
commit74aa9e2bc1a45647ca545a63e663550ab8255404 (patch)
tree4a832c757b48f298d0334729130eaa3766cf773f /src/App.tsx
parentMerge pull request #12 from python-discord/routing/add-react-router (diff)
Scale the page slightly when loading new pages
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 56fbd17..361ea0d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -34,18 +34,20 @@ body {
position: absolute;
top: 0;
left: 0;
- transition: 300ms ease opacity;
+ transition: 300ms ease-in-out opacity, 300ms ease-in-out transform;
width: 100%;
}
.fade-enter,
.fade-exit-active {
opacity: 0;
+ transform: scale(0.9);
}
.fade-enter-active {
opacity: 1;
z-index: 1;
+ transform: scale(1);
}
`;