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