mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 16:32:20 +02:00
Adding animations
This commit is contained in:
@@ -32,7 +32,7 @@ const StaffSection = () => {
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
viewport={{ once: false, amount: 0.15 }}
|
||||
className="flex items-end justify-between gap-4 mb-6 md:mb-8"
|
||||
>
|
||||
<div className="text-center md:text-left w-full">
|
||||
@@ -78,7 +78,7 @@ const StaffSection = () => {
|
||||
key={member.id}
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
viewport={{ once: false, amount: 0.15 }}
|
||||
transition={{ delay: i * 0.05 }}
|
||||
data-staff-card
|
||||
className="snap-start shrink-0 w-4/5 sm:w-1/2 lg:w-1/3 xl:w-1/4 bg-card rounded-2xl overflow-hidden shadow-card hover:shadow-elevated transition-shadow group"
|
||||
|
||||
Reference in New Issue
Block a user