spinner speeds up for mobile
1 file changed, +17 -1
+17-1twench_landing_page/components/Banner/Banner.css
| @@ -10,9 +10,25 @@ | ||
| 10 | 10 | |
| 11 | 11 | @keyframes scrollBackground { |
| 12 | 12 | from { |
| 13 | - background-position: 0 center; | |
| 13 | + background-position: center center; | |
| 14 | 14 | } |
| 15 | 15 | to { |
| 16 | 16 | background-position: -10000% center; |
| 17 | 17 | } |
| 18 | 18 | } |
| 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 | +} |