irongit

spinner speeds up for mobile

huncholanehuncholaneauthored
parent d0b4822commit 69042ad2bbe8067208bd1e8887911d726a6d4f22Browse files

1 file changed, +17 -1

+17-1twench_landing_page/components/Banner/Banner.css
@@ -10,9 +10,25 @@
1010
1111 @keyframes scrollBackground {
1212 from {
13- background-position: 0 center;
13+ background-position: center center;
1414 }
1515 to {
1616 background-position: -10000% center;
1717 }
1818 }
19+
20+/* Media query for mobile devices */
21+@media (max-width: 767px) {
22+ .Banner .Picture {
23+ animation: scrollBackgroundMobile 1000s linear infinite;
24+ }
25+
26+ @keyframes scrollBackgroundMobile {
27+ from {
28+ background-position: center center;
29+ }
30+ to {
31+ background-position: -100000% center;
32+ }
33+ }
34+}