-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4976 from thematters/feat/comment-animation
Feat/comment animation
- Loading branch information
Showing
12 changed files
with
307 additions
and
35 deletions.
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
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
56 changes: 56 additions & 0 deletions
56
src/components/Comment/DropdownActions/DeleteComment/styles.module.css
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,56 @@ | ||
.hideComment { | ||
display: none; | ||
} | ||
|
||
.deletedComment { | ||
overflow: hidden; | ||
animation: | ||
slide-up-fade 1.6s, | ||
maintain-padding 1.6s; | ||
} | ||
|
||
.deletedDescendantComment { | ||
overflow: hidden; | ||
animation: slide-up-fade 1.6s; | ||
} | ||
|
||
@keyframes slide-up-fade { | ||
0% { | ||
max-height: 500px; | ||
background: var(--color-insufficient-red); | ||
} | ||
|
||
/* 1s later */ | ||
62.5% { | ||
background: var(--color-insufficient-red); | ||
} | ||
|
||
100% { | ||
display: none; | ||
max-height: 0; | ||
background: var(--color-white); | ||
} | ||
} | ||
|
||
@keyframes maintain-padding { | ||
0% { | ||
padding-right: var(--sp16); | ||
padding-left: var(--sp16); | ||
margin-right: calc(-1 * var(--sp16)); | ||
margin-left: calc(-1 * var(--sp16)); | ||
} | ||
|
||
99% { | ||
padding-right: var(--sp16); | ||
padding-left: var(--sp16); | ||
margin-right: calc(-1 * var(--sp16)); | ||
margin-left: calc(-1 * var(--sp16)); | ||
} | ||
|
||
100% { | ||
padding-right: 0; | ||
padding-left: 0; | ||
margin-right: 0; | ||
margin-left: 0; | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.