/* This section is for the sky slowly scrolling right to left across the screen */ .sliding-background-container { overflow: hidden; } .sliding-background { background: url("./images/deathvalleysky_nps_trim.jpg") repeat-x; height: 1000px; width: 12000px; /* The image width times 3 */ animation: slide 500s linear infinite; } @keyframes slide { 0%{ transform: translate3d(0, 0, 0); } 100%{ transform: translate3d(-4000px, 0, 0); /* The image width */ } } /* This section is for the paralex effect for the user to scroll up and down */ body, html { height: 100%; margin: 0; font: 400 15px/1.8 "Lato", sans-serif; color: #777; } .bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 { position: relative; opacity: 0.65; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; } .bgimg-1 { /* background-image: url("img_parallax.jpg"); */ min-height: 100%; } .bgimg-2 { background-image: url("./images/proxima-b.jpg"); min-height: 100%; } .bgimg-3 { background-image: url("./images/image_4675e-Neptune-Mass-Exoplanet.jpg"); min-height: 100%; } .bgimg-4 { background-image: url("./images/alien-oceans.jpg"); min-height: 100%; } .caption { position: absolute; left: 0; top: 18%; width: 100%; text-align: center; color: #000; } /* .caption span.border { background-color: #111; color: #fff; padding: 10px; font-size: 25px; letter-spacing: 10px; } */ h3 { letter-spacing: 5px; text-transform: uppercase; font: 20px "Lato", sans-serif; color: #111; } /* Turn off parallax scrolling for tablets and phones */ @media only screen and (max-device-width: 1024px) { .bgimg-1, .bgimg-2, .bgimg-3 { background-attachment: scroll; } }