Skip to content

Commit

Permalink
[#463] Loading 컴포넌트 animation 버그 해결 (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Jun 17, 2024
1 parent 150592c commit 8219f67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/v1/base/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ const LoadingDot = ({
animationStep?: AnimationStep;
}) => (
<span
className={`h-[1rem] w-[1rem] rounded-full ${schemes[color]} ${animations[animationStep]}`}
className={`h-[1rem] w-[1rem] rounded-full ${schemes[color]} ${animations[animationStep]} translate-y-[5px] opacity-20`}
></span>
);
16 changes: 8 additions & 8 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,24 @@ module.exports = {
to: { transform: 'translateY(300%)' },
},
'dot-flash': {
'0%': {
opacity: 1,
transform: 'translateY(0px)',
},
'50%,100%': {
'0%,33%,100%': {
opacity: 0.2,
transform: 'translateY(5px)',
},
'16%': {
opacity: 1,
transform: 'translateY(0px)',
},
},
},
animation: {
'page-transition': 'page-transition 0.2s forwards ease-in-out',
'slide-in': '0.3s forwards slide-in ease-in-out',
'slide-out': '0.3s forwards slide-out ease-in-out',
'slide-init': '0.3s forwards slide-init ease-in-out',
'dot-flash': '1s infinite dot-flash alternate',
'dot-flash-delay-0.5': '1s 0.5s infinite dot-flash alternate',
'dot-flash-delay-1': '1s 1s infinite dot-flash alternate',
'dot-flash': '2s infinite dot-flash linear',
'dot-flash-delay-0.5': '2s 0.5s infinite dot-flash linear',
'dot-flash-delay-1': '2s 1s infinite dot-flash linear',
},
},
},
Expand Down

0 comments on commit 8219f67

Please sign in to comment.