💄 🐛 Fixed the comment component animation style.
This commit is contained in:
parent
8948151b05
commit
26f36810c9
2
assets/css/_common/scaffolding/animation/index.scss
Normal file
2
assets/css/_common/scaffolding/animation/index.scss
Normal file
@ -0,0 +1,2 @@
|
||||
@import 'show';
|
||||
@import 'hover';
|
65
assets/css/_common/scaffolding/animation/show.scss
Normal file
65
assets/css/_common/scaffolding/animation/show.scss
Normal file
@ -0,0 +1,65 @@
|
||||
// tabshow animation
|
||||
@-moz-keyframes tabshow {
|
||||
0% {
|
||||
-webkit-transform: translateY(15px);
|
||||
-moz-transform: translateY(15px);
|
||||
-o-transform: translateY(15px);
|
||||
-ms-transform: translateY(15px);
|
||||
transform: translateY(15px);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes tabshow {
|
||||
0% {
|
||||
-webkit-transform: translateY(15px);
|
||||
-moz-transform: translateY(15px);
|
||||
-o-transform: translateY(15px);
|
||||
-ms-transform: translateY(15px);
|
||||
transform: translateY(15px);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@-o-keyframes tabshow {
|
||||
0% {
|
||||
-webkit-transform: translateY(15px);
|
||||
-moz-transform: translateY(15px);
|
||||
-o-transform: translateY(15px);
|
||||
-ms-transform: translateY(15px);
|
||||
transform: translateY(15px);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@keyframes tabshow {
|
||||
0% {
|
||||
-webkit-transform: translateY(15px);
|
||||
-moz-transform: translateY(15px);
|
||||
-o-transform: translateY(15px);
|
||||
-ms-transform: translateY(15px);
|
||||
transform: translateY(15px);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
@ -11,3 +11,4 @@
|
||||
@import 'pagination';
|
||||
@import 'comments';
|
||||
@import 'fontawesome';
|
||||
@import 'animation';
|
||||
|
@ -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;"
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -22,7 +22,6 @@
|
||||
{{- $scss = $scss | resources.ExecuteAsTemplate "main.scss" . }}
|
||||
{{- $css := $scss | toCSS (dict "targetPath" "/css/main.css" "outputStyle" "expanded") }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||
<link rel="stylesheet" href="/css/hover.css">
|
||||
{{- if .IsPage }}
|
||||
<style type="text/css">
|
||||
.post-footer hr:after {
|
||||
|
Loading…
Reference in New Issue
Block a user