fix(settings): added bezier curve to animations

This commit is contained in:
trashtemp
2022-01-21 09:06:55 +01:00
parent 66cfcc4b02
commit 73303dc05e
3 changed files with 37 additions and 24 deletions

View File

@@ -13,6 +13,21 @@ export const Bar = styled.div<{ position: "top" | "bottom"; accent?: boolean }>`
z-index: 1;
position: relative;
@keyframes bounce-from-bottom {
0% {
transform: translateY(33px);
}
100% {
transform: translateY(0px);
}
}
animation-name: bounce-from-bottom;
animation-duration: 340ms;
animation-delay: 0ms;
animation-timing-function: cubic-bezier(0.2, 0.9, 0.5, 1.16);
animation-fill-mode: forwards;
${(props) =>
props.position === "top" &&
css`