Skip to content

Commit

Permalink
fix(website/animations): adjust animation-delay selector priority
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Feb 20, 2024
1 parent 4e390c1 commit 5f2c7b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/app/(pages)/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Link from 'next/link'
import { Showcase } from './_components/showcase'
import { ExampleCode } from '@/app/(local-pages)/example-playground/code'

const fadeUpClassname = 'motion-safe:opacity-0 motion-safe:animate-fade-up'
const fadeUpClassname = 'lg:motion-safe:opacity-0 lg:motion-safe:animate-fade-up'

export default function IndexPage() {
return (
Expand All @@ -26,14 +26,14 @@ export default function IndexPage() {
<Showcase
className={cn(
fadeUpClassname,
'motion-safe:[animation-delay:1000ms]',
'lg:motion-safe:[animation-delay:1000ms]',
)}
/>

<PageHeaderDescription
className={cn(
fadeUpClassname,
'motion-safe:[animation-delay:3000ms]',
'lg:motion-safe:[animation-delay:3000ms]',
)}
>
One-time password input component for React. Accessible. Unstyled.
Expand All @@ -43,7 +43,7 @@ export default function IndexPage() {
<PageActions
className={cn(
fadeUpClassname,
'motion-safe:[animation-delay:3000ms]',
'lg:motion-safe:[animation-delay:3000ms]',
)}
>
<div className={buttonVariants({ variant: 'outline' })}>
Expand Down

0 comments on commit 5f2c7b7

Please sign in to comment.