Skip to content

Instantly share code, notes, and snippets.

@biologyscience
Created September 14, 2022 14:03
Show Gist options
  • Save biologyscience/3c5ce0b81ca136e7b9b8569713f7fa39 to your computer and use it in GitHub Desktop.
Save biologyscience/3c5ce0b81ca136e7b9b8569713f7fa39 to your computer and use it in GitHub Desktop.
animation not working
#queueListMenu
{
$width: 60vw * .6;
$height: calc(var(--displayHeight) * .75);
font-size: 20px;
width: $width;
height: $height;
top: calc((var(--displayHeight) - $height) / 2);
left: calc((60vw - $width) / 2);
border-radius: 5px;
background-color: var(--dark30);
box-shadow: 0 1vh 50px .5vw black;
z-index: 1;
animation: slideIn 250ms ease forwards;
animation-direction: reverse;
&.visible
{
animation-direction: normal;
}
@keyframes slideIn
{
0%
{
transform: translateY(200%);
opacity: 0;
}
1%
{
transform: translateY(2.5%);
opacity: 0;
}
50%
{
transform: translateY(2.5%);
opacity: 1;
}
100%
{
transform: translateY(0%);
opacity: 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment