Skip to content

Commit

Permalink
[FIX] Loading 문구 dots 애니메이션 정상 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
GarlicB committed May 13, 2023
1 parent 551a9f8 commit 89c8d0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/pages/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Post: React.FC = () => {
{isLoading ? (
<div className="loading">
<span>Loading</span>
<span className="loading-dots">...</span>
<span className="loading-dots" />
</div>
) : mdSource ? (
<>
Expand Down
9 changes: 4 additions & 5 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ a {
font-weight: bold;
}

.loading-dots {
animation: loadingDots 0.5s linear infinite;
.loading-dots::after {
content: ".";
animation: loadingDots 0.7s linear infinite;
}

@keyframes loadingDots {
Expand All @@ -146,12 +147,10 @@ a {
33% {
content: "..";
}

66% {
content: "...";
}
100% {
content: ".";
}
}

.markdown {
Expand Down

0 comments on commit 89c8d0f

Please sign in to comment.