탭메뉴(영화차트 스와이퍼) 복습
swiper 접속
layout copy
chart1 중간에 붙여넣기
swiper script 붙여넣기
위에서 이미 swiper const 지정을 했기 때문에 const 대신에 let swiper로 변경한다.
이미 지정된 const swiper는 const 삭제한다.
loope 빼고 밑에 다 삭제하고 '.swiper' >' .swiper2 '로 변경
swiper-wrapper 마크업
reset.css에 여백초기화 부분에 figure, figcaption 추가하기
reset.css 에 .icon 스타일 추가하기
html 에 icon 이름을 넣어주면 reset에 넣은 icon 이미지가 들어간다.
.chart1 css 편집
img를 100%로 지정하고 포스터를 기준으로 rank가 움직여야하기 때문에 기준점 잡아준다.
.mx 편집
.info 마크업
.info css 편집
● vertical-align : 세로로 정렬 맞추기
.info_btn css 편집
포스터가 완성되었다.
이제 각 .swiper-slide div 안에 각 .poster부터.info_btn 을 복사해서 붙여넣기한다.
그리고 각 포스터이미지와 영화제목 랭크만 수정하기
swiper 초기화 넣기 : swiper 끼리 충돌 되지 않도록 함.
최신개봉자 탭 만들기
swiper 반응형 적용하기
swiper > api > parameters >
붙여넣기
아래 처럼 수정하기
반응형이 적용된것을 볼 수 있다.
swiper html scrollbar 추가
script 도 추가
스크롤바 편집
event 만들기
html 마크업
event css 편집
event 반응형 넣기
width 768px
.row값 위쪽 여백은 0 나머지는 24px 주기
event_right 숨겨주기
width 600px
<html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>하이시네마_1</title>
<!-- CSS -->
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/swiper.css">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/media.css">
<!-- 파비콘 -->
<link rel="shortcut icon" href="./image/ICON.png">
</head>
<body>
<header id="header">
<div class="container">
<div class="row">
<div class="header clearfix">
<h1 class="logo">
<a href="#">
<em><img src="./image/logo.png" alt="하이시네마"></em>
<strong><img src="./image/logo_sub.png" alt="하이미디어영화관"></strong>
</a>
</h1>
<nav id="mNav">
<h2 class="ir_su">하이시네마 전체메뉴(모바일)</h2>
<a href="#" class="ham"><span></span></a> <!--span으로 가상요소 만들 예정-->
</nav>
<nav class="nav">
<h2 class="ir_su">하이시네마 전체메뉴(PC)</h2>
<ul class="clearfix">
<li><a href="#">영화</a></li>
<li><a href="#">큐레이션</a></li>
<li><a href="#">영화관</a></li>
<li><a href="#">특별관</a></li>
<li><a href="#">스토어</a></li>
<li><a href="#">이벤트</a></li>
<li><a href="#">로그인</a></li>
</ul>
</nav>
</div><!--//.header-->
</div><!--//row-->
</div><!--//container-->
</header><!--//#header-->
<section id="banner">
<h2 class="ir_su">최신 영화 소식</h2>
<!-- 베너메뉴 -->
<div class="banner_menu clearfix">
<div class="container">
<div class="row">
<div class="bm_left">
<ul class="clearfix">
<li class="total"><a href="#">전체메뉴</a></li>
<li class="line"><a href="#">필름 소사이어티</a></li>
<li><a href="#">클래식 소사이어티</a></li>
</ul>
</div>
<div class="bm_right clearfix">
<ul class="clearfix">
<li class="line"><a href="#">고객센터</a></li>
<li class="line"><a href="#">멤버십</a></li>
<li><a href="#">VIP</a></li>
</ul>
<ul class="clearfix">
<li class="white"><a href="#">상영시간표</a></li>
<li class="purple"><a href="#">빠른예매</a></li>
</ul>
</div>
</div><!--row-->
</div><!--container-->
</div>
<!-- 이미지 -->
<div class="slider">
<div class="container">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide s1">
<h3>첫번째 슬라이드</h3>
<p>스와이퍼를 잘 사용합시다</p>
</div>
<div class="swiper-slide s2">
<h3>두번째 슬라이드</h3>
<p>코딩 잘하고싶다.</p>
</div>
<div class="swiper-slide s3">
<h3>세번째 슬라이드</h3>
<p>코딩의 제왕이 되자</p>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<div class="swiper-scrollbar"></div>
</div>
</div>
</div>
</section><!--//banner-->
<section id="movie">
<div class="container">
<div class="row">
<h2 class="ir_su">영화예매</h2>
<div class="movie">
<div class="movie_title">
<ul class="clearfix">
<li class="active"><a href="#">박스오피스</a></li>
<li><a href="#">최신개봉작</a></li>
<li><a href="#">상영예정작</a></li>
<li><a href="#">큐레이션</a></li>
</ul>
</div><!--movie_title-->
<div class="movie_chart">
<div class="chart1">
<div class="swiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster01.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>1</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon all ir_pm">관람가</span>
<strong>삼진그룹</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster02.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>2</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a12 ir_pm">관람가</span>
<strong>동굴</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster04.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>3</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a15 ir_pm">관람가</span>
<strong>내가죽던날</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster05.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>4</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a19 ir_pm">관람가</span>
<strong>검객</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster06.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>5</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a15 ir_pm">관람가</span>
<strong>1987</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster07.jpg" alt="포스터1">
</figure>
<div class="rank">
<strong>6</strong>
</div>
<div class="mx">
<span class="m icon ir_pm">MX</span>
<span class="b icon ir_pm">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a15 ir_pm">관람가</span>
<strong>검사외전</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
<div class="chart2">
<div class="swiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new1.jpg" alt="인디아나존스">
</figure>
<div class="rank">
<strong>1</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon all ir_pm">관람가</span>
<strong>인디아나존스</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new2.jpg" alt="스파이더맨">
</figure>
<div class="rank">
<strong>2</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon all ir_pm">관람가</span>
<strong>스파이더맨</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new3.jpg" alt="엘리멘탈">
</figure>
<div class="rank">
<strong>3</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon all ir_pm">관람가</span>
<strong>엘리멘탈</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new4.jpg" alt="범죄도시3">
</figure>
<div class="rank">
<strong>4</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a19 ir_pm">관람가</span>
<strong>범죄도시3</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new5.jpg" alt="악마들">
</figure>
<div class="rank">
<strong>5</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a19 ir_pm">관람가</span>
<strong>악마들</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/new6.jpg" alt="귀공자">
</figure>
<div class="rank">
<strong>6</strong>
</div>
<div class="mx ir_pm">
<span class="m icon">mx</span>
<span class="b icon">Boutique</span>
</div>
</div>
<div class="info">
<h3>
<span class="icon a15 ir_pm">관람가</span>
<strong>귀공자</strong>
</h3>
<div class="info_btn">
<a href="#">상세보기</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="chart3">chart3</div>
<div class="chart4">chart4</div>
</div><!--movie_chart-->
</div><!--movie-->
</div>
</div>
</section><!--//탭메뉴,movie-->
<section id="event">
<div class="container">
<div class="row">
<div class="event">
<h2>새로운 이벤트</h2>
<div class="event_left">
<div class="event_slide">
<img src="../영화/image/event3.png" alt="이벤트이미지">
</div>
<div class="event_box1">
<img src="../영화/image/event1.png" alt="관람권런칭">
</div>
<div class="event_box2">
<img src="./image/event2.png" alt="부평점 시즌할인권">
</div>
</div>
<div class="event_right">
<img src="./image/event0.png" alt="사표대신 영화표">
</div>
</div>
</div>
</div>
</section><!--//event-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
<script>
//영화차트 스와이퍼
let swiper = new Swiper('.swiper2', {
//화면상에 보여지는 swiper-slide 갯수
slidesPerView: 4,
//슬라이드와 슬라이드 사이 간격
spaceBetween: 10,
// swiper 초기화
observeParents: true,
observer: true,
// Responsive breakpoints >> 반응형
breakpoints: {
// when window width is >= 10px
10: {
slidesPerView: 1.4,
spaceBetween: 20
},
// when window width is >= 600px
600: {
slidesPerView: 2,
spaceBetween: 20
},
// when window width is >= 960px
960: {
slidesPerView: 3,
spaceBetween: 24
},
// when window width is >= 1024px
1024: {
slidesPerView: 4,
spaceBetween: 24
},
}
});
//영화차트 탭메뉴
const mBtn = $(".movie_title > ul > li");
const mCont = $(".movie_chart > div");
mCont.hide().eq(0).show();
mBtn.click(function (e) {
e.preventDefault();
let target = $(this);
let index = target.index();
mBtn.removeClass("active");
target.addClass("active");
mCont.hide().eq(index).show();
});
swiper = new Swiper('.swiper', {
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
mousewheel: true,
scrollbar: {
el: '.swiper-scrollbar',
},
keyboard: {
enabled: true,
},
// autoplay: {
// delay: 2500,
// },
// swiper 초기화
observeParents: true,
observer: true,
});
</script>
</body>
</html>
<style.css>
@charset "utf-8";
#header{
width: 100%;
border-bottom: 1px solid #c6c6c6;
}
#mNav{
position: absolute;
top: 10px;
right: 14px;
display: none;
}
#banner{
/* banner_menu의 기준점 */
position: relative;
}
#movie{}
.container{
width: 1280px;
margin: 0 auto;
position: relative;
/* background-color: rgba(0, 0, 0, 0.1); */
}
.row{
padding: 0 28px;
}
/* 모바일 네비게이션 편집 */
.ham{
display: block;
width: 25px;
height: 10px;
/* background-color: rgba(0, 0, 0, 0.3); */
padding: 15px 10px 10px 10px;
}
.ham span{
display: block;
width: 25px;
height: 4px;
background-color: #30106a;
position: relative;
}
.ham span::before,.ham span::after{
content: "";
width: 25px;
height: 4px;
background-color: #30106a;
position: absolute;
left: 0;
top: 8px;
}
.ham span::after{
top: -8px;
}
/* header */
.header{}
.header .logo{
float: left;
}
.header .logo a{}
/* 하이시네마 */
.header .logo a em{
padding: 15px 8px 5px 0;
display: inline-block;
}
.header .logo a em img{
/* 너비값만 넣어주어 비율 맞게 들어가게한다. */
width: 155px;
}
/* 하이미디어영화관 */
.header .logo a strong{
display: block;
/* container에 기준점이 있음 */
position: absolute;
left: 194px;
top: 24px;
}
.header .logo a strong img{
width: 126px;
}
.header .nav{
float: right;
}
.header .nav ul{
border-left: 1px solid #c6c6c6;
}
.header .nav ul li{
float: left;
width: 103px;
text-align: center;
border-right: 1px solid #c6c6c6;
}
.header .nav ul li a{
display: block;
padding: 20px 10px;
font-weight: 700;
font-size: 17px;
color: #444;
}
/* banner_menu */
.banner_menu{
position: absolute;
left: 0;
width: 100%;
top: 20px;
z-index: 10;
}
.banner_menu a{
color: #fff;
font-size: 16px;
transition: all 0.3s;
}
.banner_menu a:hover{
color: #000;
}
/* 왼쪽 정렬 */
.banner_menu .bm_left{
float: left;
}
.banner_menu .bm_left ul{
margin-top: 7px;
}
.banner_menu .bm_left ul li{
/* 옆으로 나열 */
display: inline;
}
.banner_menu .bm_left ul li.total{
margin-right: 20px;
}
.banner_menu .bm_left ul li.total a{
border: 1px solid #fff;
}
.banner_menu .bm_left ul li.total a:hover{
background-color: #fff;
color: #000;
}
.banner_menu ul li.line{
margin-right: 30px;
position: relative;
}
.banner_menu ul li.line::after{
position: absolute;
content: "";
right: -18px;
top: 0;
width: 1px;
height: 16px;
background-color: #fff;
}
.banner_menu .bm_left ul li a{
display: inline-block;
padding: 3px 10px;
}
/* 오른쪽 정렬 */
.banner_menu .bm_right{
float: right;
}
.banner_menu .bm_right ul{
float: left;
}
.banner_menu .bm_right ul:first-child{
margin-top: 10px;
}
.banner_menu .bm_right ul li{
float: left;
margin-right: 30px;
}
.banner_menu .bm_right ul li.line::after{
top: 6px;
}
/* .banner_menu .bm_right ul li.line{
margin-right: 30px;
position: relative;
}
.banner_menu .bm_right ul li.line::after{
content: "";
position: absolute;
width: 1px;
height: 16px;
top: 3px;
right: -9px;
background-color: #fff;
} */
.banner_menu .bm_right ul li.white{}
.banner_menu .bm_right ul li.white a{
display: inline-block;
width: 80px;
background-color: #fff;
color: #3a0e6a;
padding: 7px 30px;
border: 1px solid #30106a;
text-align: center;
}
.banner_menu .bm_right ul li.purple{}
.banner_menu .bm_right ul li.purple a{
display: inline-block;
background-color: #30106a;
padding: 7px 30px;
width: 80px;
text-align: center;
border: 1px solid #6e40c4;
}
.banner_menu a{
color: #fff;
font-size: 16px;
transition: all 0.3s;
}
.banner_menu a:hover{
color: #c1c1c1;
}
.slider{
width: 100%;
/* background-color: #ccc; */
}
.slider .swiper-slide{
height: 400px;
}
.slider img{
width: 100%;
}
.slider .s1{
background: url(../image/banner2.jpg) center center;
background-size: cover;
}
.slider .s2{
background: url(../image/banner3.png) center center;
background-size: cover;
}
.slider .s3{
background: url(../image/banner4.png) center center;
background-size: cover;
}
.swiper-button-prev, .swiper-button-next{
color: #fff;
text-shadow: 1px 1px 2px #222;
}
.swiper-pagination-bullet{
width: 11px;
height: 11px;
background-color: #fff;
margin-right: 20px;
}
.slider .swiper-slide h3{
position: relative;
display: inline-block;
font-size: 62px;
top: 150px;
font-weight: bold;
color: #fff;
left: 60px;
text-shadow: 3px 3px 5px #333;
}
.slider .swiper-slide h3::after{
content: "";
width: 100%;
height: 1px;
background-color: #fff;
position: absolute;
bottom: 5px;
left: 2px;
}
.slider .swiper-slide p{
font-size: 27px;
color: #fff;
/* container가 기준점 */
position: absolute;
left: 60px;
top: 240px;
font-weight: bold;
text-shadow: 1px 1px 3px #333;
}
/* .movie */
.movie{
padding: 100px 0;
}
.movie .movie_title{
margin-bottom: 60px;
}
.movie .movie_title ul{
margin: 0 auto;
width: 900px;
}
.movie .movie_title ul li{
float: left;
width: 210px;
text-align: center;
border: 1px solid #c4c4c4;
/* border 겹치는 부분 삭제 */
margin-right: -1px;
}
.movie .movie_title ul li a{
display: block;
padding: 15px 0;
font-size: 18px;
color: #666;
font-weight: 700;
}
.movie .movie_title ul li.active{}
.movie .movie_title ul li.active a{
background-color: #666;
color: #fff;
}
/* .movie_chart */
.movie_chart{
/* 자식태그에서 float해서 hidden 적용 */
overflow: hidden;
}
.movie_chart > .chart1{}
.movie_chart > .chart1 > div{}
.movie_chart > .chart1 > div > div{}
.movie_chart > .chart1 > div > div > div{}
.movie_chart > .chart1 > div > div > div > .poster{
position: relative;
}
.movie_chart > .chart1 > div > div > div > .poster img{width: 100%;}
/* 포스터를 기준으로 rank가 움지역야함 */
.movie_chart > .chart1 > div > div > div > .poster .rank{
position: absolute;
top: 17px;
left: 0;
width: 50px;
height: 50px;
background-color: #6e40c4;
text-align: center;
line-height: 50px;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}
.movie_chart > .chart1 > div > div > div > .poster .rank strong{
font-size: 20px;
color: #fff;
}
.movie_chart > .chart1 > div > div > div > .poster .mx{
position: absolute;
top: 17px;
right: 0;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span{
display: block;
width: 103px;
height: 25px;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span.m{
background-position: 0 -75px;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span.b{
background-position: 0 -100px;
}
/* .info */
.movie_chart > .chart1 > div > div > div > .info{
border: 1px solid #ccc;
background-color: #fff;
padding: 17px;
}
.movie_chart > .chart1 > div > div > div > .info h3{
font-size: 26px;
color: #333;
font-weight: bold;
margin-bottom: 20px;
}
.movie_chart > .chart1 > div > div > div > .info h3 strong{}
.movie_chart > .chart1 > div > div > div > .info h3 span{
display: inline-block;
width: 29px;
height: 29px;
vertical-align: -5px;
}
/* 관람가 이미지_ icon */
.movie_chart > .chart1 > div > div > div > .info h3 span.all{
background-position: -87px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a12{
background-position: 0px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a15{
background-position: -29px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a19{
background-position: -59px -125px;
}
/* .info_btn */
.movie_chart > .chart1 > div > div > div > .info .info_btn{
overflow: hidden;
}
.movie_chart > .chart1 > div > div > div > .info .info_btn a{
float: left;
display: block;
width: 49%;
height: 50px;
background-color: #ccc;
display: flex;
justify-content: center;
align-items: center;
margin-right: 2%;
font-size: 16px;
font-weight: bold;
}
.movie_chart > .chart1 > div > div > div > .info .info_btn a:last-child{
margin-right: 0;
}
.swiper2 .swiper-button-prev,.swiper2 .swiper-button-next{
display: none;
}
/* movie_chart2 */
.movie_chart > .chart2{
overflow: hidden;
}
.movie_chart > .chart2 > div{}
.movie_chart > .chart2 > div > div{}
.movie_chart > .chart2 > div > div > div{}
.movie_chart > .chart2 > div > div > div .poster{
position: relative;
}
.movie_chart > .chart2 > div > div > div .poster img{
width: 100%;
}
.movie_chart > .chart2 > div > div > div .poster .rank{
position: absolute;
background-color: #6e40c4;
width: 50px;
height: 50px;
left: 0;
top: 17px;
text-align: center;
line-height: 50px;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}
.movie_chart > .chart2 > div > div > div .poster .rank strong{
color: #fff;
font-size: 20px;
}
.movie_chart > .chart2 > div > div > div .mx{
position: absolute;
right: 0;
top: 17px;
}
.movie_chart > .chart2 > div > div > div .mx span{
display: block;
width: 103px;
height: 25px;
}
.movie_chart > .chart2 > div > div > div .mx .m{
background-position: 0px -75px;
}
.movie_chart > .chart2 > div > div > div .mx .b{
background-position: 0 -100px;
}
.movie_chart > .chart2 > div > div > div .info{
border: 1px solid #ccc;
padding: 17px;
}
.movie_chart > .chart2 > div > div > div .info h3{
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #333;
}
.movie_chart > .chart2 > div > div > div > .info h3 span{
display: inline-block;
width: 29px;
height: 29px;
vertical-align: -5px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.all{
background-position: -87px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a12{
background-position: 0px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a15{
background-position: -29px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a19{
background-position: -59px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span strong{}
.movie_chart > .chart2 > div > div > div .info .info_btn{
overflow: hidden;
}
.movie_chart > .chart2 > div > div > div .info .info_btn a{
float: left;
display: block;
background-color: #ccc;
width: 49%;
height: 50px;
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
margin-right: 2%;
font-size: 16px;
font-weight: bold;
}
.movie_chart > .chart2 > div > div > div .info_btn a:last-child{
margin-right: 0;
}
.swiper .swiper-scrollbar-drag{background-color: #fff;}
/* event */
.event{
overflow: hidden;
padding-bottom: 100px;
}
.event h2{
font-size: 30px;
font-weight: bold;
margin-bottom: 20px;
}
.event img{width: 100%; display: block;}
.event .event_left{
overflow: hidden;
float: left;
width: 66%;
margin-right: 2%;
}
.event .event_left .event_slide{
width: 100%;
float: left;
}
.event .event_left .event_box1{
float: left;
width: 50%;
}
.event .event_left .event_box2{
float: left;
width: 50%;
}
.event .event_left .event_slide img{}
.event .event_right{
width: 32%;
float: right;
margin-right: 0;
}
<media.css>
@charset "utf-8";
#header{
width: 100%;
border-bottom: 1px solid #c6c6c6;
}
#mNav{
position: absolute;
top: 10px;
right: 14px;
display: none;
}
#banner{
/* banner_menu의 기준점 */
position: relative;
}
#movie{}
.container{
width: 1280px;
margin: 0 auto;
position: relative;
/* background-color: rgba(0, 0, 0, 0.1); */
}
.row{
padding: 0 28px;
}
/* 모바일 네비게이션 편집 */
.ham{
display: block;
width: 25px;
height: 10px;
/* background-color: rgba(0, 0, 0, 0.3); */
padding: 15px 10px 10px 10px;
}
.ham span{
display: block;
width: 25px;
height: 4px;
background-color: #30106a;
position: relative;
}
.ham span::before,.ham span::after{
content: "";
width: 25px;
height: 4px;
background-color: #30106a;
position: absolute;
left: 0;
top: 8px;
}
.ham span::after{
top: -8px;
}
/* header */
.header{}
.header .logo{
float: left;
}
.header .logo a{}
/* 하이시네마 */
.header .logo a em{
padding: 15px 8px 5px 0;
display: inline-block;
}
.header .logo a em img{
/* 너비값만 넣어주어 비율 맞게 들어가게한다. */
width: 155px;
}
/* 하이미디어영화관 */
.header .logo a strong{
display: block;
/* container에 기준점이 있음 */
position: absolute;
left: 194px;
top: 24px;
}
.header .logo a strong img{
width: 126px;
}
.header .nav{
float: right;
}
.header .nav ul{
border-left: 1px solid #c6c6c6;
}
.header .nav ul li{
float: left;
width: 103px;
text-align: center;
border-right: 1px solid #c6c6c6;
}
.header .nav ul li a{
display: block;
padding: 20px 10px;
font-weight: 700;
font-size: 17px;
color: #444;
}
/* banner_menu */
.banner_menu{
position: absolute;
left: 0;
width: 100%;
top: 20px;
z-index: 10;
}
.banner_menu a{
color: #fff;
font-size: 16px;
transition: all 0.3s;
}
.banner_menu a:hover{
color: #000;
}
/* 왼쪽 정렬 */
.banner_menu .bm_left{
float: left;
}
.banner_menu .bm_left ul{
margin-top: 7px;
}
.banner_menu .bm_left ul li{
/* 옆으로 나열 */
display: inline;
}
.banner_menu .bm_left ul li.total{
margin-right: 20px;
}
.banner_menu .bm_left ul li.total a{
border: 1px solid #fff;
}
.banner_menu .bm_left ul li.total a:hover{
background-color: #fff;
color: #000;
}
.banner_menu ul li.line{
margin-right: 30px;
position: relative;
}
.banner_menu ul li.line::after{
position: absolute;
content: "";
right: -18px;
top: 0;
width: 1px;
height: 16px;
background-color: #fff;
}
.banner_menu .bm_left ul li a{
display: inline-block;
padding: 3px 10px;
}
/* 오른쪽 정렬 */
.banner_menu .bm_right{
float: right;
}
.banner_menu .bm_right ul{
float: left;
}
.banner_menu .bm_right ul:first-child{
margin-top: 10px;
}
.banner_menu .bm_right ul li{
float: left;
margin-right: 30px;
}
.banner_menu .bm_right ul li.line::after{
top: 6px;
}
/* .banner_menu .bm_right ul li.line{
margin-right: 30px;
position: relative;
}
.banner_menu .bm_right ul li.line::after{
content: "";
position: absolute;
width: 1px;
height: 16px;
top: 3px;
right: -9px;
background-color: #fff;
} */
.banner_menu .bm_right ul li.white{}
.banner_menu .bm_right ul li.white a{
display: inline-block;
width: 80px;
background-color: #fff;
color: #3a0e6a;
padding: 7px 30px;
border: 1px solid #30106a;
text-align: center;
}
.banner_menu .bm_right ul li.purple{}
.banner_menu .bm_right ul li.purple a{
display: inline-block;
background-color: #30106a;
padding: 7px 30px;
width: 80px;
text-align: center;
border: 1px solid #6e40c4;
}
.banner_menu a{
color: #fff;
font-size: 16px;
transition: all 0.3s;
}
.banner_menu a:hover{
color: #c1c1c1;
}
.slider{
width: 100%;
/* background-color: #ccc; */
}
.slider .swiper-slide{
height: 400px;
}
.slider img{
width: 100%;
}
.slider .s1{
background: url(../image/banner2.jpg) center center;
background-size: cover;
}
.slider .s2{
background: url(../image/banner3.png) center center;
background-size: cover;
}
.slider .s3{
background: url(../image/banner4.png) center center;
background-size: cover;
}
.swiper-button-prev, .swiper-button-next{
color: #fff;
text-shadow: 1px 1px 2px #222;
}
.swiper-pagination-bullet{
width: 11px;
height: 11px;
background-color: #fff;
margin-right: 20px;
}
.slider .swiper-slide h3{
position: relative;
display: inline-block;
font-size: 62px;
top: 150px;
font-weight: bold;
color: #fff;
left: 60px;
text-shadow: 3px 3px 5px #333;
}
.slider .swiper-slide h3::after{
content: "";
width: 100%;
height: 1px;
background-color: #fff;
position: absolute;
bottom: 5px;
left: 2px;
}
.slider .swiper-slide p{
font-size: 27px;
color: #fff;
/* container가 기준점 */
position: absolute;
left: 60px;
top: 240px;
font-weight: bold;
text-shadow: 1px 1px 3px #333;
}
/* .movie */
.movie{
padding: 100px 0;
}
.movie .movie_title{
margin-bottom: 60px;
}
.movie .movie_title ul{
margin: 0 auto;
width: 900px;
}
.movie .movie_title ul li{
float: left;
width: 210px;
text-align: center;
border: 1px solid #c4c4c4;
/* border 겹치는 부분 삭제 */
margin-right: -1px;
}
.movie .movie_title ul li a{
display: block;
padding: 15px 0;
font-size: 18px;
color: #666;
font-weight: 700;
}
.movie .movie_title ul li.active{}
.movie .movie_title ul li.active a{
background-color: #666;
color: #fff;
}
/* .movie_chart */
.movie_chart{
/* 자식태그에서 float해서 hidden 적용 */
overflow: hidden;
}
.movie_chart > .chart1{}
.movie_chart > .chart1 > div{}
.movie_chart > .chart1 > div > div{}
.movie_chart > .chart1 > div > div > div{}
.movie_chart > .chart1 > div > div > div > .poster{
position: relative;
}
.movie_chart > .chart1 > div > div > div > .poster img{width: 100%;}
/* 포스터를 기준으로 rank가 움지역야함 */
.movie_chart > .chart1 > div > div > div > .poster .rank{
position: absolute;
top: 17px;
left: 0;
width: 50px;
height: 50px;
background-color: #6e40c4;
text-align: center;
line-height: 50px;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}
.movie_chart > .chart1 > div > div > div > .poster .rank strong{
font-size: 20px;
color: #fff;
}
.movie_chart > .chart1 > div > div > div > .poster .mx{
position: absolute;
top: 17px;
right: 0;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span{
display: block;
width: 103px;
height: 25px;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span.m{
background-position: 0 -75px;
}
.movie_chart > .chart1 > div > div > div > .poster .mx span.b{
background-position: 0 -100px;
}
/* .info */
.movie_chart > .chart1 > div > div > div > .info{
border: 1px solid #ccc;
background-color: #fff;
padding: 17px;
}
.movie_chart > .chart1 > div > div > div > .info h3{
font-size: 26px;
color: #333;
font-weight: bold;
margin-bottom: 20px;
}
.movie_chart > .chart1 > div > div > div > .info h3 strong{}
.movie_chart > .chart1 > div > div > div > .info h3 span{
display: inline-block;
width: 29px;
height: 29px;
vertical-align: -5px;
}
/* 관람가 이미지_ icon */
.movie_chart > .chart1 > div > div > div > .info h3 span.all{
background-position: -87px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a12{
background-position: 0px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a15{
background-position: -29px -125px;
}
.movie_chart > .chart1 > div > div > div > .info h3 span.a19{
background-position: -59px -125px;
}
/* .info_btn */
.movie_chart > .chart1 > div > div > div > .info .info_btn{
overflow: hidden;
}
.movie_chart > .chart1 > div > div > div > .info .info_btn a{
float: left;
display: block;
width: 49%;
height: 50px;
background-color: #ccc;
display: flex;
justify-content: center;
align-items: center;
margin-right: 2%;
font-size: 16px;
font-weight: bold;
}
.movie_chart > .chart1 > div > div > div > .info .info_btn a:last-child{
margin-right: 0;
}
.swiper2 .swiper-button-prev,.swiper2 .swiper-button-next{
display: none;
}
/* movie_chart2 */
.movie_chart > .chart2{
overflow: hidden;
}
.movie_chart > .chart2 > div{}
.movie_chart > .chart2 > div > div{}
.movie_chart > .chart2 > div > div > div{}
.movie_chart > .chart2 > div > div > div .poster{
position: relative;
}
.movie_chart > .chart2 > div > div > div .poster img{
width: 100%;
}
.movie_chart > .chart2 > div > div > div .poster .rank{
position: absolute;
background-color: #6e40c4;
width: 50px;
height: 50px;
left: 0;
top: 17px;
text-align: center;
line-height: 50px;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}
.movie_chart > .chart2 > div > div > div .poster .rank strong{
color: #fff;
font-size: 20px;
}
.movie_chart > .chart2 > div > div > div .mx{
position: absolute;
right: 0;
top: 17px;
}
.movie_chart > .chart2 > div > div > div .mx span{
display: block;
width: 103px;
height: 25px;
}
.movie_chart > .chart2 > div > div > div .mx .m{
background-position: 0px -75px;
}
.movie_chart > .chart2 > div > div > div .mx .b{
background-position: 0 -100px;
}
.movie_chart > .chart2 > div > div > div .info{
border: 1px solid #ccc;
padding: 17px;
}
.movie_chart > .chart2 > div > div > div .info h3{
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #333;
}
.movie_chart > .chart2 > div > div > div > .info h3 span{
display: inline-block;
width: 29px;
height: 29px;
vertical-align: -5px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.all{
background-position: -87px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a12{
background-position: 0px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a15{
background-position: -29px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span.a19{
background-position: -59px -125px;
}
.movie_chart > .chart2 > div > div > div > .info h3 span strong{}
.movie_chart > .chart2 > div > div > div .info .info_btn{
overflow: hidden;
}
.movie_chart > .chart2 > div > div > div .info .info_btn a{
float: left;
display: block;
background-color: #ccc;
width: 49%;
height: 50px;
margin-right: 10px;
display: flex;
justify-content: center;
align-items: center;
margin-right: 2%;
font-size: 16px;
font-weight: bold;
}
.movie_chart > .chart2 > div > div > div .info_btn a:last-child{
margin-right: 0;
}
.swiper .swiper-scrollbar-drag{background-color: #fff;}
/* event */
.event{
overflow: hidden;
padding-bottom: 100px;
}
.event h2{
font-size: 30px;
font-weight: bold;
margin-bottom: 20px;
}
.event img{width: 100%; display: block;}
.event .event_left{
overflow: hidden;
float: left;
width: 66%;
margin-right: 2%;
}
.event .event_left .event_slide{
width: 100%;
float: left;
}
.event .event_left .event_box1{
float: left;
width: 50%;
}
.event .event_left .event_box2{
float: left;
width: 50%;
}
.event .event_left .event_slide img{}
.event .event_right{
width: 32%;
float: right;
margin-right: 0;
}
<reset.css>
@charset "utf-8";
@import url(//fonts.googleapis.com/earlyaccess/nanumgothic.css);
.nanumgothic * {
font-family: 'Nanum Gothic', sans-serif;
}
/* 여백 초기화 */
body,div,ul,li,dl,dt,ol,h1,h2,h3,h4,h5,h6,input,fieldset,legend,p,select,table,
th,td,tr,textarea,button,form,figure,figcaption{margin: 0; padding: 0;}
/* a 링크 초기화 */
a {color: #222; text-decoration: none;}
a:hover {color: #390;}
/* 폰트 초기화 */
body, input, textarea, select, button, table {
font-family:'Nanum Gothic',AppleSDGothicNeo-Regular,'Malgun Gothic','맑은 고딕',dotum,'돋움',sans-serif;
color: #222; font-size: 13px; line-height: 1.5;}
/* 폰트 스타일 초기화 */
em,address {font-style: normal;}
/* 블릿기호 초기화 */
dl,ul,li,ol,menu {list-style: none;}
/* 제목 태그 초기화 */
h1,h2,h3,h4,h5,h6 {font-size: 13px; color:#222; font-weight: normal;}
/* 테두리 초기화 */
img,fieldset {border:0 none;}
/* 버튼 초기화 */
button {border:0;}
/* IR 효과 */
.ir_pm {display: block; overflow: hidden; font-size: 0; line-height: 0; text-indent: -9999px;} /* 의미있는 이미지의 대체 텍스트를 제공하는 경우 */
.ir_wa {display: block; overflow: hidden; position: relative; z-index: -1; width: 100%; height: 100%;} /* 의미있는 이미지의 대체 텍스트로 이미지가 없어도 대체 텍스트를 보여주고하 할 때 */
.ir_su {overflow: hidden; position: absolute; width: 0; height: 0; line-height: 0; text-indent: -9999px;} /* 대체 텍스트가 아닌 접근성을 위한 숨김 텍스트를 제공할 때 */
/* margin, padding */
.mt10 {margin-top: 10px !important;}
.mt15 {margin-top: 15px !important;}
.mt20 {margin-top: 20px !important;}
.mt25 {margin-top: 25px !important;}
.mt30 {margin-top: 30px !important;}
.mt35 {margin-top: 35px !important;}
.mt40 {margin-top: 40px !important;}
.mt45 {margin-top: 45px !important;}
.mt50 {margin-top: 50px !important;}
.clearfix::before,.clearfix::after{
content: "";
display: block;
clear: both;
}
.icon{
background: url(../image/KakaoTalk_20230706_141256154.png);
}
img{
display: block;
}
<swiper.css>
/**
* Swiper 10.0.3
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2023 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: July 3, 2023
*/
@font-face {
font-family: swiper-icons;
src: url('data:application/font-woff;charset=utf-8;base64, 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');
font-weight: 400;
font-style: normal
}
:root {
--swiper-theme-color: #007aff
}
:host {
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
z-index: 1
}
.swiper {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
overflow: clip;
list-style: none;
padding: 0;
z-index: 1;
display: block
}
.swiper2 {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
overflow: clip;
list-style: none;
padding: 0;
z-index: 1;
display: block
}
.swiper3 {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
overflow: clip;
list-style: none;
padding: 0;
z-index: 1;
display: block
}
.swiper-vertical>.swiper-wrapper {
flex-direction: column
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
transition-property: transform;
transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
box-sizing: content-box
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
transform: translate3d(0px, 0, 0)
}
.swiper-horizontal {
touch-action: pan-y
}
.swiper-vertical {
touch-action: pan-x
}
.swiper-slide {
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
display: block
}
.swiper-slide-invisible-blank {
visibility: hidden
}
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
height: auto
}
.swiper-autoheight .swiper-wrapper {
align-items: flex-start;
transition-property: transform, height
}
.swiper-backface-hidden .swiper-slide {
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-3d.swiper-css-mode .swiper-wrapper {
perspective: 1200px
}
.swiper-3d .swiper-wrapper {
transform-style: preserve-3d
}
.swiper-3d {
perspective: 1200px
}
.swiper-3d .swiper-cube-shadow,
.swiper-3d .swiper-slide {
transform-style: preserve-3d
}
.swiper-css-mode>.swiper-wrapper {
overflow: auto;
scrollbar-width: none;
-ms-overflow-style: none
}
.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar {
display: none
}
.swiper-css-mode>.swiper-wrapper>.swiper-slide {
scroll-snap-align: start start
}
.swiper-css-mode.swiper-horizontal>.swiper-wrapper {
scroll-snap-type: x mandatory
}
.swiper-css-mode.swiper-vertical>.swiper-wrapper {
scroll-snap-type: y mandatory
}
.swiper-css-mode.swiper-free-mode>.swiper-wrapper {
scroll-snap-type: none
}
.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide {
scroll-snap-align: none
}
.swiper-css-mode.swiper-centered>.swiper-wrapper::before {
content: '';
flex-shrink: 0;
order: 9999
}
.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide {
scroll-snap-align: center center;
scroll-snap-stop: always
}
.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child {
margin-inline-start: var(--swiper-centered-offset-before)
}
.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before {
height: 100%;
min-height: 1px;
width: var(--swiper-centered-offset-after)
}
.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child {
margin-block-start: var(--swiper-centered-offset-before)
}
.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before {
width: 100%;
min-width: 1px;
height: var(--swiper-centered-offset-after)
}
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-bottom,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10
}
.swiper-3d .swiper-slide-shadow {
background: rgba(0, 0, 0, .15)
}
.swiper-3d .swiper-slide-shadow-left {
background-image: linear-gradient(to left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-right {
background-image: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-top {
background-image: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-bottom {
background-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-lazy-preloader {
width: 42px;
height: 42px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -21px;
margin-top: -21px;
z-index: 10;
transform-origin: 50%;
box-sizing: border-box;
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
border-radius: 50%;
border-top-color: transparent
}
.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,
.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader {
animation: swiper-preloader-spin 1s infinite linear
}
.swiper-lazy-preloader-white {
--swiper-preloader-color: #fff
}
.swiper-lazy-preloader-black {
--swiper-preloader-color: #000
}
@keyframes swiper-preloader-spin {
0% {
transform: rotate(0deg)
}
100% {
transform: rotate(360deg)
}
}
.swiper-virtual .swiper-slide {
-webkit-backface-visibility: hidden;
transform: translateZ(0)
}
.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
content: '';
position: absolute;
left: 0;
top: 0;
pointer-events: none
}
.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
height: 1px;
width: var(--swiper-virtual-size)
}
.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
width: 1px;
height: var(--swiper-virtual-size)
}
:root {
--swiper-navigation-size: 44px
}
.swiper-button-next,
.swiper-button-prev {
position: absolute;
top: var(--swiper-navigation-top-offset, 50%);
width: calc(var(--swiper-navigation-size)/ 44 * 27);
height: var(--swiper-navigation-size);
margin-top: calc(0px - (var(--swiper-navigation-size)/ 2));
z-index: 10;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--swiper-navigation-color, var(--swiper-theme-color))
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
opacity: .35;
cursor: auto;
pointer-events: none
}
.swiper-button-next.swiper-button-hidden,
.swiper-button-prev.swiper-button-hidden {
opacity: 0;
cursor: auto;
pointer-events: none
}
.swiper-navigation-disabled .swiper-button-next,
.swiper-navigation-disabled .swiper-button-prev {
display: none !important
}
.swiper-button-next svg,
.swiper-button-prev svg {
width: 100%;
height: 100%;
object-fit: contain;
transform-origin: center
}
.swiper-rtl .swiper-button-next svg,
.swiper-rtl .swiper-button-prev svg {
transform: rotate(180deg)
}
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
left: var(--swiper-navigation-sides-offset, 10px);
right: auto
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto
}
.swiper-button-lock {
display: none
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-family: swiper-icons;
font-size: var(--swiper-navigation-size);
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
content: 'prev'
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
content: 'next'
}
.swiper-pagination {
position: absolute;
text-align: center;
transition: .3s opacity;
transform: translate3d(0, 0, 0);
z-index: 10
}
.swiper-pagination.swiper-pagination-hidden {
opacity: 0
}
.swiper-pagination-disabled>.swiper-pagination,
.swiper-pagination.swiper-pagination-disabled {
display: none !important
}
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
bottom: var(--swiper-pagination-bottom, 8px);
top: var(--swiper-pagination-top, auto);
left: 0;
width: 100%
}
.swiper-pagination-bullets-dynamic {
overflow: hidden;
font-size: 0
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transform: scale(.33);
position: relative
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
transform: scale(1)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
transform: scale(1)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
transform: scale(.66)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
transform: scale(.33)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
transform: scale(.66)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
transform: scale(.33)
}
.swiper-pagination-bullet {
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
display: inline-block;
border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
background: var(--swiper-pagination-bullet-inactive-color, #000);
opacity: var(--swiper-pagination-bullet-inactive-opacity, .2)
}
button.swiper-pagination-bullet {
border: none;
margin: 0;
padding: 0;
box-shadow: none;
-webkit-appearance: none;
appearance: none
}
.swiper-pagination-clickable .swiper-pagination-bullet {
cursor: pointer
}
.swiper-pagination-bullet:only-child {
display: none !important
}
.swiper-pagination-bullet-active {
opacity: var(--swiper-pagination-bullet-opacity, 1);
background: var(--swiper-pagination-color, var(--swiper-theme-color))
}
.swiper-pagination-vertical.swiper-pagination-bullets,
.swiper-vertical>.swiper-pagination-bullets {
right: var(--swiper-pagination-right, 8px);
left: var(--swiper-pagination-left, auto);
top: 50%;
transform: translate3d(0px, -50%, 0)
}
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet {
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
display: block
}
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
top: 50%;
transform: translateY(-50%);
width: 8px
}
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
display: inline-block;
transition: .2s transform, .2s top
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px)
}
.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
left: 50%;
transform: translateX(-50%);
white-space: nowrap
}
.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: .2s transform, .2s left
}
.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: .2s transform, .2s right
}
.swiper-pagination-fraction {
color: var(--swiper-pagination-fraction-color, inherit)
}
.swiper-pagination-progressbar {
background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));
position: absolute
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: var(--swiper-pagination-color, var(--swiper-theme-color));
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform: scale(0);
transform-origin: left top
}
.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
transform-origin: right top
}
.swiper-horizontal>.swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal,
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,
.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
width: 100%;
height: var(--swiper-pagination-progressbar-size, 4px);
left: 0;
top: 0
}
.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-vertical,
.swiper-vertical>.swiper-pagination-progressbar {
width: var(--swiper-pagination-progressbar-size, 4px);
height: 100%;
left: 0;
top: 0
}
.swiper-pagination-lock {
display: none
}
.swiper-scrollbar {
border-radius: var(--swiper-scrollbar-border-radius, 10px);
position: relative;
-ms-touch-action: none;
background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))
}
.swiper-scrollbar-disabled>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-disabled {
display: none !important
}
.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
position: absolute;
left: var(--swiper-scrollbar-sides-offset, 1%);
bottom: var(--swiper-scrollbar-bottom, 4px);
top: var(--swiper-scrollbar-top, auto);
z-index: 50;
height: var(--swiper-scrollbar-size, 4px);
width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}
.swiper-scrollbar.swiper-scrollbar-vertical,
.swiper-vertical>.swiper-scrollbar {
position: absolute;
left: var(--swiper-scrollbar-left, auto);
right: var(--swiper-scrollbar-right, 4px);
top: var(--swiper-scrollbar-sides-offset, 1%);
z-index: 50;
width: var(--swiper-scrollbar-size, 4px);
height: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}
.swiper-scrollbar-drag {
height: 100%;
width: 100%;
position: relative;
background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));
border-radius: var(--swiper-scrollbar-border-radius, 10px);
left: 0;
top: 0
}
.swiper-scrollbar-cursor-drag {
cursor: move
}
.swiper-scrollbar-lock {
display: none
}
.swiper-zoom-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center
}
.swiper-zoom-container>canvas,
.swiper-zoom-container>img,
.swiper-zoom-container>svg {
max-width: 100%;
max-height: 100%;
object-fit: contain
}
.swiper-slide-zoomed {
cursor: move;
touch-action: none
}
.swiper .swiper-notification {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
z-index: -1000
}
.swiper-free-mode>.swiper-wrapper {
transition-timing-function: ease-out;
margin: 0 auto
}
.swiper-grid>.swiper-wrapper {
flex-wrap: wrap
}
.swiper-grid-column>.swiper-wrapper {
flex-wrap: wrap;
flex-direction: column
}
.swiper-fade.swiper-free-mode .swiper-slide {
transition-timing-function: ease-out
}
.swiper-fade .swiper-slide {
pointer-events: none;
transition-property: opacity
}
.swiper-fade .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-fade .swiper-slide-active,
.swiper-fade .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-cube {
overflow: visible
}
.swiper-cube .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
visibility: hidden;
transform-origin: 0 0;
width: 100%;
height: 100%
}
.swiper-cube .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-cube.swiper-rtl .swiper-slide {
transform-origin: 100% 0
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-next,
.swiper-cube .swiper-slide-prev {
pointer-events: auto;
visibility: visible
}
.swiper-cube .swiper-cube-shadow {
position: absolute;
left: 0;
bottom: 0px;
width: 100%;
height: 100%;
opacity: .6;
z-index: 0
}
.swiper-cube .swiper-cube-shadow:before {
content: '';
background: #000;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
filter: blur(50px)
}
.swiper-cube .swiper-slide-next+.swiper-slide {
pointer-events: auto;
visibility: visible
}
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-flip {
overflow: visible
}
.swiper-flip .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1
}
.swiper-flip .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-flip .swiper-slide-active,
.swiper-flip .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-creative .swiper-slide {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden;
transition-property: transform, opacity, height
}
.swiper-cards {
overflow: visible
}
.swiper-cards .swiper-slide {
transform-origin: center bottom;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden
}
'☭DEVELOPER > #2 웹개발(자바기반 풀스택)' 카테고리의 다른 글
비주얼 스튜디오 코드 70_parallax07 (0) | 2023.07.10 |
---|---|
비주얼 스튜디오 코드 69_파노라마 회사소개02 (0) | 2023.07.07 |
비주얼 스튜디오 코드 67_ 하이시네마 탭메뉴 (0) | 2023.07.06 |
비주얼 스튜디오 코드 66_ 사이드 닷 메뉴 (0) | 2023.07.06 |
비주얼 스튜디오 코드 65_파노라마 회사 소개 (0) | 2023.07.05 |