fix(games): use specific transition properties for smooth carousel loop
Fixed carousel looping issue by replacing generic 'transition: all' with specific transition properties. Only transition opacity on carousel items and transform/box-shadow/border-color on cards for hover effects. This prevents CSS transitions from interfering with embla's carousel transform animations at the loop wrap point. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
24231e6b2e
commit
187271e515
|
|
@ -163,7 +163,9 @@ function GamesPageContent() {
|
|||
flex: '0 0 auto',
|
||||
w: { base: '85%', md: '400px' },
|
||||
mr: '6',
|
||||
transition: 'all 0.3s ease-out',
|
||||
transitionProperty: 'opacity',
|
||||
transitionDuration: '0.3s',
|
||||
transitionTimingFunction: 'ease-out',
|
||||
opacity: isActive ? 1 : 0.6,
|
||||
})}
|
||||
>
|
||||
|
|
@ -188,7 +190,9 @@ function GamesPageContent() {
|
|||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
height: '100%',
|
||||
transition: 'all 0.3s ease',
|
||||
transitionProperty: 'transform, box-shadow, border-color',
|
||||
transitionDuration: '0.3s',
|
||||
transitionTimingFunction: 'ease',
|
||||
_hover: {
|
||||
transform: 'translateY(-4px)',
|
||||
boxShadow: '0 25px 50px rgba(59, 130, 246, 0.4)',
|
||||
|
|
|
|||
Loading…
Reference in New Issue