-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6751679
commit 09a2465
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
|
||
import styles from './styles.module.scss'; | ||
|
||
const DotPulse = () => { | ||
return ( | ||
<div className={styles.dotPulse}> | ||
<div className={styles.dotPulse__dot}>.</div> | ||
<div className={styles.dotPulse__dot}>.</div> | ||
<div className={styles.dotPulse__dot}>.</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DotPulse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.dotPulse { | ||
display: flex; | ||
gap: 4px; | ||
align-items: center; | ||
// justify-content: center; | ||
|
||
&__dot:nth-child(1) { | ||
animation: dotPulse 1s infinite linear 0s; | ||
} | ||
|
||
&__dot:nth-child(2) { | ||
animation: dotPulse 1s infinite linear 0.2s; | ||
} | ||
|
||
&__dot:nth-child(3) { | ||
animation: dotPulse 1s infinite linear 0.4s; | ||
} | ||
} | ||
|
||
@keyframes dotPulse { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters