Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *{
- box-sizing: border-box;
- }
- html{
- scroll-behavior: smooth;
- scroll-snap-type: y mandatory;
- }
- main{
- display: grid;
- grid-template-rows: 100vh 100vh 100vh 100vh 100vh;
- background-color: black;
- color:darkgray;
- }
- section{
- text-align: center;
- font-size: 30px;
- scroll-snap-align: start;
- position: relative;
- }
- body{
- height: 500vh;
- margin:0%;
- font-family: 'Montserrat', sans-serif;
- }
- footer {
- position: fixed;
- bottom: 0;
- z-index: 1;
- width: 100%;
- background-color: #f1f1f1;
- }
- /* The progress container (grey background) */
- .progress-container {
- width: 100%;
- height: 8px;
- background: #ccc;
- }
- /* The progress bar (scroll indicator) */
- .progress-bar {
- height: 8px;
- background: rgba(123, 111, 222, 1);
- width: 0%;
- }
- nav{
- position: fixed;
- z-index: 100;
- border: solid black 1px;
- border-radius: 0 10px 10px 0;
- background-color: rgba(123, 111, 222, 0.3);
- display: flex;
- flex-direction: column;
- top: 50%;
- transform: translateY(-50%);
- }
- nav a{
- margin: 10px;
- text-decoration: none;
- text-align: center;
- color: white;
- font-size: x-large;
- }
- video {
- position: fixed;
- height: 100vh;
- width: 100vw;
- opacity: 30%;
- }
- p{
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- margin-left: 10vw;
- margin-right: 10vw;
- }
- h2{
- margin-top: 0px;
- text-transform: uppercase;
- color: rgba(123, 111, 222, 1);
- }
- img{
- display: block;
- margin-left: auto;
- margin-right: auto;
- height: 80vh;
- width: auto;
- }
- .active, .nav-button:hover {
- background-color: #666;
- color: white;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement