@import url('https://fonts.googleapis.com/css?family=Annie%20Use%20Your%20Telescope:700|Annie%20Use%20Your%20Telescope:400'); h1, h2, h3, h4, h5 { font-family: 'Annie Use Your Telescope'; font-weight: 900; } @media screen and (min-width: 920px) { html { font-size: 300%; } } /* 16px */ :root { --carousel-width: -2990px; } body { font-family: 'Annie Use Your Telescope'; font-weight: 600; width: 80%; align-self: center; text-align: center; margin: auto; } .header { display: flex; position: sticky; justify-content: center; } .header-element { // align-items: center; // justify-content: center; align-content: center; margin-left: 1em; margin-right: 1em; } .header-element>img { height: 10ex; } @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(var(--carousel-width)); } } // @media screen and (min-width: 920px) { .carousel::before, .carousel::after { background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); content: ""; height: 100%; position: absolute; width: 5%; z-index: 2; } // } .carousel::after { right: 0; top: 0; transform: rotateZ(180deg); } .carousel::before { left: 0; top: 0; } .carousel { position: relative; display: flex; flex-direction: row; overflow: hidden; } // .carousel>.overlay { // position: absolute; // top: 0; // left: 0; // height: 100%; // width: 100%; // background: rgba(255, 0, 0, 0); // background: radial-gradient(ellipse farthest-corner at center center, rgba(255, 0, 0, 0) 0%, #fff 80%); // } .carousel-element { animation: scroll 70s linear infinite; background: #ffffff; background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 1) 100%); } .carousel-element>img { height: 50vh; }