💄 🐛 Fixed the comment component animation style.

This commit is contained in:
凡梦星尘
2022-06-20 16:07:50 +08:00
parent 8948151b05
commit 26f36810c9
6 changed files with 72 additions and 6 deletions

View File

@@ -258,12 +258,11 @@ NexT.utils = {
const comms = document.querySelectorAll('.comment-wrap > div');
button.addEventListener('click', () => {
button.classList.toggle('move');
comms.forEach(function(item){
item.style.display = item.style.display === 'none' ? 'block' : 'none';
if (item.style.display === 'block') {
item.style.animation = "0.8s ease 0s 1 normal none running tabshow";
comms.forEach(function(item){
if (item.style.display === 'none') {
item.style.cssText = "display: block; animation: tabshow .8s";
} else {
item.style.removeProperty('animation');
item.style.cssText = "display: none;"
}
});
});