feat(ui): add scroll-triggered shine to header and fix button hover overlay z-index
Former-commit-id: c374d2fb1d0db12d813bb75aea765936f348208b
This commit is contained in:
@@ -61,7 +61,7 @@ export function ButtonOverlay({ variant = 'primary' }: { variant?: keyof typeof
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
'absolute top-0 -left-[150%] h-full w-[150%] bg-gradient-to-r from-transparent to-transparent skew-x-[-20deg] group-hover/btn:left-[100%] transition-all duration-700 ease-[cubic-bezier(0.16,1,0.3,1)] z-0',
|
||||
'absolute top-0 -left-[150%] h-[200%] w-[150%] bg-gradient-to-r from-transparent to-transparent skew-x-[-20deg] group-hover/btn:left-[100%] transition-all duration-1000 ease-[cubic-bezier(0.16,1,0.3,1)] z-30 pointer-events-none',
|
||||
buttonShineColorsMap[variant]
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user