syncova-ticket/src/theme/keyframes.ts
Weapie 9c561cb574
All checks were successful
Tests und Docker-Image / Tests und Frontend-Build (push) Successful in 2m8s
Tests und Docker-Image / Leeres Produktionsimage bauen und veröffentlichen (push) Successful in 4m28s
Add Syncova Ticket with tested Gitea image publishing and persistent Compose deployment
2026-11-03 17:04:00 +01:00

126 lines
2.7 KiB
TypeScript

import { defineKeyframes } from '@pandacss/dev'
export const keyframes = defineKeyframes({
// collapse
'expand-height': {
from: { height: '0' },
to: { height: 'var(--height)' },
},
'collapse-height': {
from: { height: 'var(--height)' },
to: { height: '0' },
},
'expand-width': {
from: { width: '0' },
to: { width: 'var(--width)' },
},
'collapse-width': {
from: { width: 'var(--width)' },
to: { width: '0' },
},
// fade
'fade-in': {
from: { opacity: '0' },
to: { opacity: '1' },
},
'fade-out': {
from: { opacity: '1' },
to: { opacity: '0' },
},
// slide from (full)
'slide-from-left-full': {
from: { translate: '-100% 0' },
to: { translate: '0 0' },
},
'slide-from-right-full': {
from: { translate: '100% 0' },
to: { translate: '0 0' },
},
'slide-from-top-full': {
from: { translate: '0 -100%' },
to: { translate: '0 0' },
},
'slide-from-bottom-full': {
from: { translate: '0 100%' },
to: { translate: '0 0' },
},
// slide to (full)
'slide-to-left-full': {
from: { translate: '0 0' },
to: { translate: '-100% 0' },
},
'slide-to-right-full': {
from: { translate: '0 0' },
to: { translate: '100% 0' },
},
'slide-to-top-full': {
from: { translate: '0 0' },
to: { translate: '0 -100%' },
},
'slide-to-bottom-full': {
from: { translate: '0 0' },
to: { translate: '0 100%' },
},
// slide from
'slide-from-top': {
'0%': { translate: '0 -0.5rem' },
to: { translate: '0' },
},
'slide-from-bottom': {
'0%': { translate: '0 0.5rem' },
to: { translate: '0' },
},
'slide-from-left': {
'0%': { translate: '-0.5rem 0' },
to: { translate: '0' },
},
'slide-from-right': {
'0%': { translate: '0.5rem 0' },
to: { translate: '0' },
},
// slide to
'slide-to-top': {
'0%': { translate: '0' },
to: { translate: '0 -0.5rem' },
},
'slide-to-bottom': {
'0%': { translate: '0' },
to: { translate: '0 0.5rem' },
},
'slide-to-left': {
'0%': { translate: '0' },
to: { translate: '-0.5rem 0' },
},
'slide-to-right': {
'0%': { translate: '0' },
to: { translate: '0.5rem 0' },
},
// scale
'scale-in': {
from: { scale: '0.95' },
to: { scale: '1' },
},
'scale-out': {
from: { scale: '1' },
to: { scale: '0.95' },
},
'bg-position': {
from: {
backgroundPosition: 'var(--animate-from, 1rem) 0',
},
to: {
backgroundPosition: 'var(--animate-to, 0) 0',
},
},
position: {
from: {
insetInlineStart: 'var(--animate-from-x)',
insetBlockStart: 'var(--animate-from-y)',
},
to: {
insetInlineStart: 'var(--animate-to-x)',
insetBlockStart: 'var(--animate-to-y)',
},
},
})