Skip to content

Commit

Permalink
animation repeater fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isaozler committed Nov 1, 2023
1 parent 8a37879 commit 721e4cc
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/styles/page.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ export const fadeIn = keyframes({
})

export const fadeOut = keyframes({
'100%': {
'0%': {
opacity: 1,
},
'50%': {
opacity: 0,
},
'0%': {
'90%': {
opacity: 0,
},
'100%': {
opacity: 1,
},
})
Expand Down Expand Up @@ -240,10 +246,10 @@ export const titleH5 = style({
},
})

export const fadeAfter = style({
animationName: fadeOut,
animationDuration: '400ms',
animationFillMode: 'forwards',
animationTimingFunction: 'ease-in',
animationDelay: 9000 + 'ms',
})
export const fadeAfter = style({
animationName: fadeOut,
animationDuration: '2000ms',
animationFillMode: 'forwards',
animationTimingFunction: 'ease-in',
animationDelay: '9s',
})

0 comments on commit 721e4cc

Please sign in to comment.