mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-02 19:16:40 +00:00
feat(JTransition): add slide-y transition
Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
parent
717af1817a
commit
231ddd83e2
@ -13,7 +13,7 @@ import { Transition, TransitionGroup, type TransitionProps, mergeProps } from 'v
|
||||
import { prefersNoMotion } from '@/store';
|
||||
|
||||
export interface JTransitionProps extends BetterOmit<TransitionProps, 'name'> {
|
||||
name?: 'fade' | 'rotated-zoom' | 'slide-y-reverse' | 'slide-x' | 'slide-x-reverse';
|
||||
name?: 'fade' | 'rotated-zoom' | 'slide-y' | 'slide-y-reverse' | 'slide-x' | 'slide-x-reverse';
|
||||
/**
|
||||
* Transition group props
|
||||
*/
|
||||
@ -68,10 +68,19 @@ const props = withDefaults(defineProps<JTransitionProps>(), { name: 'fade', grou
|
||||
.j-transition-slide-y-reverse-enter-active,
|
||||
.j-transition-slide-y-reverse-leave-active,
|
||||
.j-transition-slide-x-enter-active,
|
||||
.j-transition-slide-x-leave-active {
|
||||
.j-transition-slide-x-leave-active,
|
||||
.j-transition-slide-y-enter-from,
|
||||
.j-transition-slide-y-leave-to {
|
||||
transition-property: transform, opacity !important;
|
||||
}
|
||||
|
||||
/** slide-y */
|
||||
.j-transition-slide-y-enter-from,
|
||||
.j-transition-slide-y-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
|
||||
/** slide-y-reverse */
|
||||
.j-transition-slide-y-reverse-enter-from,
|
||||
.j-transition-slide-y-reverse-leave-to {
|
||||
|
Loading…
Reference in New Issue
Block a user