body.index { // === Hero === // .hero { padding: 64px 24px; } .hero h1 { font-size: 52px; font-weight: bold; line-height: 56px; margin-bottom: 34px; animation: rotate-in .2s forwards; animation-delay: 0.4s; letter-spacing: .65px; opacity: 0; color: #1e1e1e; } .hero .hero-more { font-size: 12px; display: block; width: 100%; text-align: center; letter-spacing: 2px; color: #3e3e3e; @include monospace(); } @media (min-width: 800px) { .hero h1 { text-align: center; } } // === Work === // .work .work-item { position: relative; width: 100%; background-color: #efefef; &:hover img { opacity: 0.7; } &:nth-child(2n) { background-color: #fefefe; } } .work-item img { display: block; width: 100%; } .work-item h2 { font-size: 36px; font-weight: bold; line-height: 36px; height: 40px; position: absolute; top: 20px; left: 20px; padding: 8px 6px; letter-spacing: 0px; text-transform: uppercase; color: #000000; background-color: #ffffff; } .work-item p { font-size: 16px; line-height: 18px; position: absolute; top: 70px; left: 20px; max-width: 80%; padding: 4px 6px; letter-spacing: .08em; text-transform: uppercase; max-width: 320px; color: #666666; background-color: #ffffff; @include monospace(); } @media (min-width: 800px) { .work { overflow: auto; zoom: 1; max-width: 1200px; margin: 0 auto; &::before, &::after { display: table; content: ""; } &::after { clear: both; } } .work .work-item { width: 50%; float: left; } } // == Footer == // footer { padding-bottom: 44px; border-bottom: solid #f5f5f5 8px; } footer h3 { font-size: 36px; font-weight: bold; line-height: 56px; padding: 36px 24px 0px 24px; letter-spacing: .45px; color: #1e1e1e; } footer .more { font-size: 12px; padding: 0 24px; letter-spacing: 2px; text-transform: uppercase; color: #3e3e3e; @include monospace(); } } @keyframes rotate-in { 0% { -webkit-transform: translateZ(-20px) rotateX(90deg); -moz-transform: translateZ(-20px) rotateX(90deg); -ms-transform: translateZ(-20px) rotateX(90deg); -o-transform: translateZ(-20px) rotateX(90deg); transform: translateZ(-20px) rotateX(90deg); opacity: 0; } 60% { -webkit-transform: translateZ(-20px) rotateX(-10deg); -moz-transform: translateZ(-20px) rotateX(-10deg); -ms-transform: translateZ(-20px) rotateX(-10deg); -o-transform: translateZ(-20px) rotateX(-10deg); transform: translateZ(-20px) rotateX(-10deg); opacity: 1; } 100% { -webkit-transform: translateZ(-20px) rotateX(0); -moz-transform: translateZ(-20px) rotateX(0); -ms-transform: translateZ(-20px) rotateX(0); -o-transform: translateZ(-20px) rotateX(0); transform: translateZ(-20px) rotateX(0); opacity: 1; } }