@@ -425,3 +425,63 @@ GLOBAL VARIABLES (defaults)
425425 animation : ZoomDown var (--animation-duration , 0.5s ) var (--animation-delay , 0s )
426426 var (--animation-easing , ease) reverse forwards;
427427}
428+
429+ @keyframes FlipX {
430+ 0% {
431+ opacity : 0 ;
432+ transform : perspective (100px ) rotate3d (1 , 0 , 0 , 90deg );
433+ }
434+ 40% {
435+ transform : perspective (100px ) rotate3d (1 , 0 , 0 20deg );
436+ }
437+ 60% {
438+ transform : perspective (100px ) rotate3d (1 , 0 , 0 , -10deg );
439+ }
440+ to {
441+ transform : perspective (200px );
442+ }
443+ }
444+
445+ /* When entering */
446+ .flipX-enter-active {
447+ position : absolute;
448+ animation : FlipX var (--animation-duration , 0.5s ) var (--animation-delay , 0s )
449+ var (--animation-easing , ease) forwards;
450+ }
451+
452+ /* When leaving */
453+ .flipX-leave-active {
454+ position : absolute;
455+ animation : FlipX var (--animation-duration , 0.5s ) var (--animation-delay , 0s )
456+ var (--animation-easing , ease) reverse forwards;
457+ }
458+
459+ @keyframes FlipY {
460+ 0% {
461+ opacity : 0 ;
462+ transform : perspective (400px ) rotate3d (0 , 1 , 0 , 90deg );
463+ }
464+ 40% {
465+ transform : perspective (400px ) rotate3d (0 , 1 , 0 20deg );
466+ }
467+ 60% {
468+ transform : perspective (400px ) rotate3d (0 , 1 , 0 , -10deg );
469+ }
470+ to {
471+ transform : perspective (400px );
472+ }
473+ }
474+
475+ /* When entering */
476+ .flipY-enter-active {
477+ position : absolute;
478+ animation : FlipY var (--animation-duration , 0.5s ) var (--animation-delay , 0s )
479+ var (--animation-easing , ease) forwards;
480+ }
481+
482+ /* When leaving */
483+ .flipY-leave-active {
484+ position : absolute;
485+ animation : FlipY var (--animation-duration , 0.5s ) var (--animation-delay , 0s )
486+ var (--animation-easing , ease) reverse forwards;
487+ }
0 commit comments