Skip to content

Commit

Permalink
update dark
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Aug 13, 2024
1 parent e473a88 commit a6a4427
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Bus1 from './assets/Bus 1.svg'
import Bus2 from './assets/Bus 2.svg'
import Car from './assets/Car.svg'
import Taxi from './assets/Taxi.svg'
import Light from './assets/light.svg'
import { motion } from 'framer-motion'
export default function FooterAnimationSection() {
const hours = moment().hours()
Expand All @@ -28,7 +29,9 @@ export default function FooterAnimationSection() {
left: `${xPosition * 100}%`,
}}
/>
<Image src={Scenery} alt='' className={`w-full relative z-20 ${isDay ? '' : 'opacity-60'}`} />

<Image src={Scenery} alt='' className={`w-full relative z-20`} />
{isDay ? <></> : <div className='absolute inset-0 bg-black/25 z-[21]'></div>}
<motion.div
className='absolute z-[15] w-[10%]'
initial={{ right: '-50%', top: '100%' }}
Expand All @@ -39,30 +42,38 @@ export default function FooterAnimationSection() {
<motion.div
className='absolute z-30 bottom-[14%] w-[14%]'
initial={{ right: '-50%' }}
animate={{ right: ['-50%','78%', '78%', '150%'] }}
animate={{ right: ['-50%', '78%', '78%', '150%'] }}
transition={{ duration: 25, repeat: Infinity, ease: 'easeInOut', times: [0, 0.6, 0.68, 1] }}>
<Image src={Bus1} alt='' />
{!isDay && (
<Image src={Light} alt='' className='absolute right-[94%] bottom-[2%] rotate-180 w-1/2 opacity-70' />
)}
</motion.div>
<motion.div
className='absolute z-30 bottom-[10%] w-[8%]'
initial={{ right: '-50%' }}
animate={{ right: '150%' }}
transition={{ duration: 17, repeat: Infinity, ease: 'linear' }}>
<Image src={Car} alt='' />
{!isDay && (
<Image src={Light} alt='' className='absolute right-[85%] bottom-[15%] rotate-180 w-1/2 opacity-80' />
)}
</motion.div>
<motion.div
className='absolute z-30 bottom-[4%] w-[12%]'
initial={{ left: '-50%' }}
animate={{ left: '150%' }}
transition={{ duration: 20, repeat: Infinity, ease: 'linear' }}>
<Image src={Bus2} alt='' />
{!isDay && <Image src={Light} alt='' className='absolute left-[97%] bottom-[15%] w-1/2 opacity-80' />}
</motion.div>
<motion.div
className='absolute z-30 bottom-[1%] w-[9%]'
initial={{ left: '-50%' }}
animate={{ left: '150%' }}
transition={{ duration: 14, repeat: Infinity, ease: 'linear' }}>
<Image src={Taxi} alt='' />
{!isDay && <Image src={Light} alt='' className='absolute left-[90%] bottom-[15%] w-1/2 opacity-80' />}
</motion.div>
</div>
)
Expand Down
10 changes: 10 additions & 0 deletions src/components/pages/event/pudgy-asia-tour/assets/light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a6a4427

Please sign in to comment.