Skip to content

Commit 2ec2087

Browse files
committed
chore: update animation keyframes
1 parent 5046c9a commit 2ec2087

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/login/Login.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { importComponentFromFELibrary } from '@Components/common'
4242
import { TOKEN_COOKIE_NAME, URLS } from '../../config'
4343
import { getSSOConfigList } from '../../Pages/GlobalConfigurations/Authorization/SSOLoginServices/service'
4444
import { dashboardAccessed } from '../../services/service'
45-
import { ANIMATION_VARIANTS, SSOProvider } from './constants'
45+
import { LOGIN_CARD_ANIMATION_VARIANTS, SSOProvider } from './constants'
4646
import { SSOConfigLoginList } from './login.types'
4747
import { LoginForm } from './LoginForm'
4848

@@ -189,16 +189,14 @@ const Login = () => {
189189
<div className="login-card__wrapper dc__overflow-hidden br-12 mw-420 bg__primary dc__border">
190190
<div className="flexbox-col">
191191
{renderDevtronLogo()}
192-
{/* do we need initial */}
193192
<AnimatePresence initial={false}>
194193
<MotionDiv
195194
key={location.pathname}
196-
variants={ANIMATION_VARIANTS}
195+
variants={LOGIN_CARD_ANIMATION_VARIANTS}
197196
initial="initial"
198197
animate="animate"
199198
exit="exit"
200-
transition={{ duration: 0.25, ease: 'easeInOut' }}
201-
style={{ overflow: 'hidden' }}
199+
transition={{ duration: 0.3, ease: [0.4, 0, 0.2, 1] }}
202200
>
203201
{renderLoginContent()}
204202
</MotionDiv>

src/components/login/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const ssoProviderToDisplayNameMap: Record<SSOProvider, string> = {
6060
[SSOProvider.openshift]: 'OpenShift',
6161
} as const
6262

63-
export const ANIMATION_VARIANTS = {
63+
export const LOGIN_CARD_ANIMATION_VARIANTS = {
6464
initial: { opacity: 0, y: 40, height: 0 },
6565
animate: { opacity: 1, y: 0, height: 'auto' },
6666
exit: { opacity: 0, y: -40, height: 0 },

0 commit comments

Comments
 (0)