fix landing scroll
This commit is contained in:
@@ -576,11 +576,9 @@
|
|||||||
@keyframes page-enter {
|
@keyframes page-enter {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(8px);
|
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translateY(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ export default function PageTransition(props: PageTransitionProps) {
|
|||||||
<div
|
<div
|
||||||
class={cn(
|
class={cn(
|
||||||
!entering() && "opacity-0",
|
!entering() && "opacity-0",
|
||||||
entering() && "opacity-100 translate-y-0 animate-page-enter",
|
entering() && "opacity-100 animate-page-enter",
|
||||||
"motion-reduce:opacity-100 motion-reduce:translate-y-0 motion-reduce:animate-none",
|
"motion-reduce:opacity-100 motion-reduce:animate-none",
|
||||||
props.class,
|
props.class,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user