*, *::before, *::after { box-sizing: border-box; } *{ margin: 0; } body { background-color: rgb(88, 88, 88); } .wrapper { width: 90%; max-width: 1536px; margin-inline: auto; position: relative; height: 100px; margin-top: 1rem; overflow: hidden; background-color:transparent; mask-image: linear-gradient( to right, rgba(0,0,0,0), rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) ); } .wrapper2 { width: 200%; max-width: 1536px; font-size: 10px; margin-inline: auto; position: relative; height: 400px; margin-top: 3rem; overflow: hidden; background-color:red; mask-image: linear-gradient( to right, rgba(0,0,0,0), rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) ); } @keyframes scrollleft { to { left: -200px; } } @keyframes scroeft { to { right: -200px; } } .foto { width: 280px; height: 100%; border-radius: 12px; background-color: rebeccapurple ; position: absolute; right:100%; display: flex; justify-content: center; align-items: center; animation-name: scroeft; animation-duration: 10s; animation-timing-function: linear; animation-iteration-count: infinite; } .fotok { width: 90%; height: 100%; border-radius: 12px; background-color: rebeccapurple ; position: absolute; right:100%; display: flex; justify-content: center; align-items: center; animation-name: scroeft; animation-duration: 10s; animation-timing-function: linear; animation-iteration-count: infinite; } .fotok1 { width: 90%; height: 100%; border-radius: 12px; background-color: rebeccapurple ; position: absolute; right:100%; display: flex; justify-content: center; align-items: center; animation-name: scroeft; animation-duration: 10s; animation-timing-function: linear; animation-iteration-count: infinite; } .iimmg { border-radius:13px ; border-color: rgb(252, 252, 252); } .foto0 { animation-delay: calc(30s / 20 * (20 - 14) * -1) ; } .foto1 { animation-delay: calc(30s / 20 * (20 - 1) * -1) ; } .foto2 { animation-delay: calc(30s / 20 * (20 - 1.5) * -1) ; } .foto3 { animation-delay: calc(30s / 20 * (20 - 3) * -1) ; } .foto4 { animation-delay: calc(30s / 20 * (20 - 4.5) * -1) ; } .foto5 { animation-delay: calc(30s / 20 * (20 - 6) * -1) ; } .foto6 { animation-delay: calc(30s / 20 * (20 - 6) * -1) ; } .foto7 { animation-delay: calc(30s / 20 * (20 - 7) * -1) ; } .foto8 { animation-delay: calc(30s / 20 * (20 - 8) * -1) ; } .foto9 { animation-delay: calc(30s / 20 * (20 - 9) * -1) ; } .foto10 { animation-delay: calc(30s / 20 * (20 - 10) * -1) ; } .item { width: 200PX; height: 100PX; background-color: ; border-radius: 50PX; position: absolute; left: 100%; display: flex; justify-content: center; align-items: center; animation-name: scrollleft; animation-duration: 10s; animation-timing-function: linear; animation-iteration-count: infinite; } .item1 { animation-delay: calc(30s / 10 * (10 - 1) * -1) ; } .item2 { animation-delay: calc(30s / 10 * (10 - 2) * -1) ; } .item3 { animation-delay: calc(30s / 10 * (10 - 3) * -1) ; } .item4 { animation-delay: calc(30s / 10 * (10 - 4) * -1) ; } .item5 { animation-delay: calc(30s / 10 * (10 - 5) * -1) ; } .item6 { animation-delay: calc(30s / 10 * (10 - 6) * -1) ; } .item7 { animation-delay: calc(30s / 10 * (10 - 7) * -1) ; } .item8 { animation-delay: calc(30s / 10 * (10 - 8) * -1) ; } .item9 { animation-delay: calc(30s / 10 * (10 - 9) * -1) ; } .item10 { animation-delay: calc(30s / 10 * (10 - 10) * -1) ; } .iimg { width: 200px; padding-left: 80px; } @media (max-width: 1100px){ .iimg { width: 150px; padding-left: 60px; } } @media (max-width: 930px){ .iimg { width: 150px; padding-left: 60px; } } @media (max-width: 830px){ .iimg { width: 140px; padding-left: 60px; } } @media (max-width: 615px){ .iimg { width: 130px; padding-left: 60px; } } @media (max-width: 552px){ .iimg { width: 120px; padding-left: 60px; } } @media (max-width: 460px){ .iimg { width: 110px; padding-left: 60px; } } @media (max-width: 390px){ .iimg { padding-left: 90px; } } .text1{ display: flex; text-align: center; justify-content: center; color: rgba(255, 0, 0, 0.733); font-size: 20px; } .text{ display: flex; text-align: center; justify-content: center; flex-direction: column; font-size: 25px; } .minitext { font-size: 15px; }