인프런 커뮤니티 질문&답변
하얀줄이 사진위로 올라옵니다.
작성
·
258
0
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+KR:wght@400;500;700&display=swap');
/* layout */
body{
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
}
.wrap {
    width:100%;
    overflow: hidden;
}
.en{
    font-family: 'Bebas Neue', cursive;
}
/* header */
header{
    width: 100%;
    position: fixed;
    z-index: 100;
    background: #191a1a;
}
.innerHeader{
    padding : 0 60px;
    height: 90px;
    transition : all 0.3s;
}
.innerHeader .logo{
    width: 200px;
    height: 36px;
    float: left;
    margin-top: 28px;
    transition: all 0.3s;
}
.innerHeader .logo a{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.innerHeader .logo a img{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s;
}
.innerHeader .logo a img:nth-child(2){
    opacity: 0;
}
/* gnb */
.gnb{
    position: absolute;
    left: 50%;
    transform : translateX(-50%);
    width: 800px;
}
.gnb>li{
    float:left;
    width: 20%;
    height: 90px;
    line-height: 90px;
    position:relative;
    transition: all 0.3s;
}
.gnb>li>a{
    display:block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
}
.gnb>li>a:before{
    position: absolute;
    content:'';
    background: #f8b922;
    width: 75%;
    height: 100%;
    z-index: -1;
    left: 50%;
    transform:translateX(-50%);
    top:-90px;
    opacity: 0;
    transition: all 0.3s;
}
.gnb li:hover>a:before, .gnb li>a:focus:before{
    opacity: 1;
    top:0;
}
.gnb ul.inner{
    position: absolute;
    top:80px;
    left: 12%;
    width: 160px;
    background: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    box-sizing: border-box;
    line-height: 0px;
    opacity: 0;
    transition: opacity 0.5s, top 0.5s;
    overflow: hidden;
}
.gnb ul.inner.on{
    top:90px;
    padding: 10px 25px;
    line-height: 50px;
    opacity: 1;
}
.gnb ul.inner a{
    display: block;
    width: 100%;
    height: 100%;
    font-size: 17px;
}
.gnb ul.inner a span{
    display:inline-block;
    position: relative;
}
.gnb ul.inner a span:after{
    content:'';
    width: 0%;
    height: 2px;
    background: #f8b922;
    position: absolute;
    left: 0;
    bottom: 8px;
    transition: all 0.3s;
}
.gnb ul.inner a:hover span:after,.gnb ul.inner a:focus span:after{
    width: 100%;
    padding-right: 10px;
}
/* fixHeader */
header.on .innerHeader{
    height: 60px;
    transition: all 0.4;
}
header.on .innerHeader .logo{
    margin-top: 13px;
    transition: all 0.4;
}
header.on .innerHeader .logo a img:nth-child(1){
    opacity: 0;
}
header.on .innerHeader .logo a img:nth-child(2){
    opacity: 1;
}
header.on .innerHeader .gnb > li{
    height: 60px;
    line-height: 60px;
    transition: all 0.4;
}
header.on .gnb ul.inner.on{
    top: 60px;
}
/* section.visual */
.visual .slide li{
    position: relative;
    width: 100%;
    height: 870px;
    text-align: center;
    color:white;
}
.visual .slide li:before{
    content: '';
    width: 32px;
    height: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 22%;
    background: url(../img/symbol.png) no-repeat center/cover;
    z-index: 1;
}
.visual .slide li img{
    height: 100%;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1);
    top: 0;
}
.visual .slide li .txt{
    position: absolute;
    width: 100%;
    top: 34%;
    font-size: 135px;
    line-height: 1;
    letter-spacing: 12px;
}
.visual .slide li a{
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 27%;
    font-size: 20px;
    letter-spacing: 1px;
}
.visual .slide li a:after{
    content:'';
    width: 65%;
    height: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    background: #f8b922;
    transition: all 0.3s;
}
.visual .slide li a:hover:after, .visual .slide li a:focus:after{
    width: 100%;
    transition: all 0.3s;
}
/* mask */
.visual .slide li .mask{
    display: block;
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.35);
}
.visual .slide li .mask.a {
    left: 0%;
}
.visual .slide li .mask.b {
    left: 25%;
}
.visual .slide li .mask.c {
    left: 50%;
}
.visual .slide li .mask.d {
    left: 75%;
}
/* 화살표 */
.slick-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    width: 110px;
    height: 52px;
    border: none;
    text-align: right;
    text-transform: uppercase;
    font-size: 20px;
    color:#fff;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', cursive;
}
.slick-next{
    right: 0;
    text-align: left;
}
.slick-arrow:after{
    content:'';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 2px;
    background: #fff;
}
.slick-next:after{
    left:45%;
}
.slick-arrow:before{
    content: '';
    width: 0%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    transition: all 0.4s;
    z-index: -1;
}
.slick-next:before{
    right: 0;
}
.slick-prev:before{
    left: 0;
}
/* 화살표 호버 효과 */
.slick-arrow:hover{
    color:#000;
    transition: all 0.3s;
    cursor: pointer;
}
.slick-arrow:hover:before{
    width: 112%;
}
.slick-arrow:hover:after{
    background: #f8b922;
}
/* 인디케이터 */
.visual .slide .slick-dots{
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.visual .slide .slick-dots li{
    width: 2px;
    height: 20px;
    float: left;
    margin: 0 10px;
}
.visual .slide .slick-dots li:before{
    display: none;
}
.visual .slide .slick-dots li button{
    width: 100%;
    height: 100%;
    background: #fff;
    border:none;
    text-indent: -9999px;
}
.visual .slide .slick-dots:hover, .visual .slide .slick-dots button:hover{
    cursor: pointer;
}
/* 활성화된 슬라이드 인디케이터 크기와 색 변경 */
.visual .slide .slick-dots li.slick-active button{
    background: #f8b922;
    height: 28px;
    margin-top: -12px;
    transition: height 0.3s;
}
/* 슬라이드 애니메이션 */
/* 1. 노란게이지바 */
.visual .slick-active:after{
    content:'';
    width: 100%;
    height: 5px;
    background: #f8b922;
    position: absolute;
    left: 0;
    bottom: 0;
    animation-name: bar;
    animation-duration: 6s;
}
@keyframes bar{
    0%{width: 0%;}
    100%{width: 100%;}
}
/* 2. 마스크 애니메이션 */
@keyframes mask{
    0%{width: 25%; background: #000;}
    50%{width: 25%; background: #000;}
    99%{background: #000;}
}
.visual .slick-active .mask.a{
    animation-name: mask;
    animation-duration: 0.4s;
}
.visual .slick-active .mask.b{
    animation-name: mask;
    animation-duration: 0.6s;
}
.visual .slick-active .mask.c{
    animation-name: mask;
    animation-duration: 0.8s;
}
.visual .slick-active .mask.d{
    animation-name: mask;
    animation-duration: 1s;
}
/* splitting text animation */
.visual .slick-active .splitting .char {
    display: inline-block;
    animation: slide-up 1s cubic-bezier(.5, 0, .5, 1) both;
    animation-delay: calc(60ms * var(--char-index));
}
@keyframes slide-up{
    0%{transform: translateY(30px);
    opacity: 0;}
    80%{transform: translateY(30px);
        opacity: 0;}
}
/* FIND OUT MORE 버튼 애니메이션 */
.visual .slick-active a{
    animation-name: slide-up2;
    animation-duration: 1s;
}
@keyframes slide-up2{
    0%{bottom: 20%;opacity: 0;}
    60%{bottom: 20%;opacity: 0;}
}
.visual .slick-active img{
    animation-name: img;
    animation-duration: 7s;
}
@keyframes img{
    0%{transform: scale(1.2) translateX(-50%);}
}
/* contents */
.contents{
    position: relative;
    background: #fff;
    margin-bottom: 5000px;
}
.contents .line{
    display: block;
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #eee;
}
.contents .line.a{
    left: 25%;
}
.contents .line.b{
    left: 50%;
}
.contents .line.c{
    left: 75%;
}
/*information*/
.contents .information .scrollBox{
    width: 1200px;
    margin:0 auto;
    position: relative;
    margin-bottom: 150px;
}
.contents .information .scrollBox .scroll{
    display: block;
    width: 350px;
    height: 60px;
    background: #f8b922;
    padding-left: 25px;
    box-sizing: border-box;
    font-size: 20px;
    letter-spacing: 2px;
    position: relative;
    line-height: 60px;
}
.contents .information .scrollBox .scroll span{
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0;
    top: 0;
    animation: scroll linear 0.8s 0s infinite;
}
.contents .information .scrollBox .scroll span img{
    width: 100%;
}
@keyframes scroll{
    0%{top:0;}
    50%{top: 7px;}
    100%{top: 0;}
}
.contents .inner{
    width: 1200px;
    margin: 0 auto;
    position: relative;
}
.contents .inner:after{
    content:'';
    width: 3px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    background: #f8b922;
}
/* 공통된 타이틀 */
.contents .title{
    color:#666;
}
.contents .title .en{
    font-size:62px;
    letter-spacing: 10px;
    color: #5d6168;
    line-height: 1.1;
}
.contents .title p{
    font-size: 24px;
    margin-top: 15px;
}






