Untitled

 avatar
unknown
css
a year ago
4.9 kB
7
Indexable
html {
    height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #222;
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

@media only screen and (min-width: 600px) {
    /* For tablets: */
    .col-s-1 {width: 8.33%;}
    .col-s-2 {width: 16.66%;}
    .col-s-3 {width: 25%;}
    .col-s-4 {width: 33.33%;}
    .col-s-5 {width: 41.66%;}
    .col-s-6 {width: 50%;}
    .col-s-7 {width: 58.33%;}
    .col-s-8 {width: 66.66%;}
    .col-s-9 {width: 75%;}
    .col-s-10 {width: 83.33%;}
    .col-s-11 {width: 91.66%;}
    .col-s-12 {width: 100%;}
  }
  @media only screen and (min-width: 768px) {
    /* For desktop: */
    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}
  }

* {
    scrollbar-width: auto;
    scrollbar-color: #4f3c58 #6f577a;
}

*::-webkit-scrollbar {
    width: 15px;
}

*::-webkit-scrollbar-track {
    background: #6f577a;
}

*::-webkit-scrollbar-thumb {
    background-color: #4f3c58;
    border-radius: 10px;
    border: 3px dashed #ffffff;
}

.section1, .section2 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    transform-style: preserve-3d;
}

.section1::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: url(kitchen.jpg) top center;
    background-size: cover;
    transform: translateZ(-1px) scale(2.2);
    filter: blur(2px);
    backface-visibility: hidden;
    will-change: transform;
}

.section1 .text {
    top: 10%;
    transform: translateZ(-0.5px) scale(1.5, 1.6) translateY(-33%, 10%);
}

.section2 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: url(kitchenfood.jpg) bottom center;
    background-size: cover;
    transform-style: flat;
}

.section2 .text {
    top: 10%;
    left: 50%;
    position: absolute;
    font-family: 'Franklin Gothic Heavy';
    font-size: 8vw;
    color: black;
    text-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.3),
        5px 5px 70px rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
}

.text {
    top: 30%;
    left: 50%;
    position: absolute;
    font-family: 'Franklin Gothic Heavy';
    font-size: 16vw;
    color: white;
    text-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.3),
        5px 5px 70px rgba(255, 255, 255, 0.5);
    transform: scale(1, 1.1) translate(-50%, 10%);
}

.ingredients-container {
    font-family: "Teko", sans-serif;
    position: absolute;
    top: 400px;
    left: 28%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.ingredients {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.gravy, .dumplings, .meatfilling {
    font-family: "Teko", sans-serif;
    font-size: 35px;
    line-height: 40px;
}

.ingredients:hover {
    transform: scale(1.05);
}

.ingredients.expanded {
    width: 300px;
    height: 300px;
    z-index: 10;
}

.ingredients1.expanded {
    transform: scale(1.5) translate(-55px, 0);
}

.ingredients2.expanded {
    transform: scale(1.5) translate(0, 0);
}

.ingredients3.expanded {
    transform: scale(1.5) translate(55px, 0);
}

.ingredients-container {
    position: relative;
    top: 400px;
    left: 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.ingredients {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, left 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.ingredients .extra-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: "Dosis", sans-serif;
    font-size: 14px;
}

.ingredients.expanded .extra-content {
    display: block;
    animation: fadeIn 0.5s forwards;
}

.ingredients.fade-out .extra-content {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
Editor is loading...
Leave a Comment