mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-15 16:04:19 +02:00
fix fullscreen player transition
This commit is contained in:
@@ -320,24 +320,45 @@ const MobilePlayerContainer = memo(
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
<motion.div
|
||||
animate="open"
|
||||
className={styles.container}
|
||||
exit="closed"
|
||||
initial="closed"
|
||||
style={{
|
||||
backgroundColor,
|
||||
}}
|
||||
variants={mobileContainerVariants}
|
||||
>
|
||||
<BackgroundImage
|
||||
dynamicBackground={dynamicBackground}
|
||||
dynamicIsImage={dynamicIsImage}
|
||||
/>
|
||||
{children}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
MobilePlayerContainer.displayName = 'MobilePlayerContainer';
|
||||
|
||||
const mobileContainerVariants: Variants = {
|
||||
closed: {
|
||||
y: '100%',
|
||||
transition: {
|
||||
duration: 0.5,
|
||||
ease: 'easeInOut',
|
||||
},
|
||||
},
|
||||
open: {
|
||||
y: 0,
|
||||
transition: {
|
||||
duration: 0.5,
|
||||
ease: 'easeInOut',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const MobileFullscreenPlayer = () => {
|
||||
const { t } = useTranslation();
|
||||
const setFullScreenPlayerStore = useSetFullScreenPlayerStore();
|
||||
|
||||
Reference in New Issue
Block a user