diff --git a/styles.css b/styles.css index 95ae74f..4354d12 100644 --- a/styles.css +++ b/styles.css @@ -22,14 +22,13 @@ body { -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent) } -.scroll div { +.scroll > div { white-space: nowrap; animation: scroll var(--time) linear infinite; animation-delay: calc(var(--time)*-1); - } -.scroll div:nth-child(2) { +.scroll > div:nth-child(2) { animation: scroll2 var(--time) linear infinite; animation-delay: calc(var(--time)/-2); } @@ -79,4 +78,4 @@ body { .imgBox img { max-width: 100px; scale: 0.8; -} \ No newline at end of file +}