๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
SITE

[SITE] ํ†ตํ•ฉ ์œ ํ˜• ์›น์‚ฌ์ดํŠธ ์ œ์ž‘ํ•˜๊ธฐ 01 : ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›

by _ํ† ๋งคํ†  2022. 9. 15.
728x90

SITE ๋งŒ๋“ค๊ธฐ

์ง€๊ธˆ๊นŒ์ง€ ์›นํŽ˜์ด์ง€์— ๋“ค์–ด๊ฐ€๋Š” ๊ธฐ๋ณธ์ ์ธ ์œ ํ˜•๋“ค์„ ์‹ค์Šตํ•ด๋ณด์•˜์ฃ ? ์ด๋ฒˆ์—๋Š” ์ง€๊ธˆ๊นŒ์ง€ ๋ฐฐ์› ๋˜ ์œ ํ˜•๋“ค์„ ํ•ฉ์ณ์„œ ์‹ค์ œ ์›นํŽ˜์ด์ง€ + ๋ฐ˜์‘ํ˜•์„ ํ•จ๊ป˜ ์ œ์ž‘ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๐Ÿซ 
ํŠนํžˆ ์ด๋ฒˆ ์Šฌ๋ผ์ด๋” ์œ ํ˜•์€ ์ง์ ‘ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ตฌํ˜„ํ•˜์ง€ ์•Š๊ณ  ์Šค์™€์ดํผ๋ผ๋Š” ์Šฌ๋ผ์ด๋“œ ํ”„๋ฆฌ์†Œ์Šค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ œ์ž‘ํ•ด๋ณด์•˜์Šต๋‹ˆ๋‹ค.

๐Ÿ“– Swiper๋ž€?
์Šฌ๋ผ์ด๋“œ ์ดํŽ™ํŠธ๋ฅผ ๊ฐ„๋‹จํžˆ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ณต๊ฐœ๋œ ๋ฌด๋ฃŒ ์†Œ์Šค๋กœ HTML, CSS, JAVASCRIPT๋ฅผ ๋ชจ๋‘ ์ง€์›ํ•ด์ค๋‹ˆ๋‹ค.


< figma : ๋””์ž์ธ ํ•˜๊ธฐ >

์ œ์ž‘ํ•˜๊ธฐ ์ „ ์‚ฌ์ดํŠธ์˜ ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์ •ํ•ด์ค๋‹ˆ๋‹ค.


#1. HTML

ํ—ค๋”์™€ ํ‘ธํ„ฐ ์œ ํ˜•์„ ์ œ์™ธํ•œ ์œ ํ˜•๋“ค์€ ๋ฉ”์ธ ์˜์—ญ์— ์„น์…˜๋ณ„๋กœ ๋‚˜๋ˆ„์–ด ์ €์žฅํ•˜์˜€์Šต๋‹ˆ๋‹ค.
ํ•ญ์ƒ ๊ฐ•์กฐํ–ˆ์ง€๋งŒ ์›น์‚ฌ์ดํŠธ๋ฅผ ์ œ์ž‘ํ•  ๋• ์›นํ‘œ์ค€๊ณผ ์ ‘๊ทผ์„ฑ, ํ˜ธํ™˜์„ฑ์„ ๋ฐ˜๋“œ์‹œ ์ง€ํ‚ค๋„๋ก ํ•ฉ๋‹ˆ๋‹ค. ํŠนํžˆ ์‚ฌ์ดํŠธ์—์„œ skip๋ฉ”๋‰ด ๊ตฌํ˜„์€ ๋ฐ˜๋“œ์‹œ ๊ตฌํ˜„ํ•ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค~~!

๐Ÿ’ก HTML ๋ณด๊ธฐ

โ—๏ธ ์Šคํฌ๋กค ์ฃผ์˜

<body>
    <div id="skip">
        <!-- <a href="headerType">ํ—ค๋” ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a> -->
        <a href="#sliderType">์Šฌ๋ผ์ด๋“œ ์˜์—ญ(๋ฐฐ๋„ˆ ๊ด‘๊ณ  ๋“ฑ) ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#imageType">์ด๋ฏธ์ง€ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#imgTextType">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#cardType">์นด๋“œ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#bannerType">๋ฐฐ๋„ˆ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#textType">ํ…์ŠคํŠธ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
        <a href="#footerType#">ํ‘ธํ„ฐ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    </div>
    <!-- //skip : ์›นํ‘œ์ค€ ์ค€์ˆ˜์— ๋ฐ˜๋“œ์‹œ ํ•„์š”! -->

    <section id="headerType" class="header__wrap nexon">
        <div class="header__inner">
        <div class="header__logo">
            <a href="#">WEB <em>SITE</em></a>
        </div>
        <div class="menu__bar"></div>
        <div class="header__menu">
            <ul>
                <li><a href="#sliderType">์Šฌ๋ผ์ด๋“œ ์˜์—ญ</a></li>
                <li><a href="#imageType">์ด๋ฏธ์ง€ ์˜์—ญ</a></li>
                <li><a href="#imgTextType">์ด๋ฏธ์ง€ ํ…์ŠคํŠธ ์˜์—ญ</a></li>
                <li><a href="#cardType">์นด๋“œ ์˜์—ญ</a></li>
                <li><a href="#bannerType">๋ฐฐ๋„ˆ ์˜์—ญ</a></li>
                <li><a href="#textType">ํ…์ŠคํŠธ ์˜์—ญ</a></li>
                <li><a href="#footerType">ํ‘ธํ„ฐ ์˜์—ญ</a></li>
            </ul>
        </div>
        <div class="header__member">
            <a href="#">๋กœ๊ทธ์ธ</a>
        </div>
        </div>
    </section>
    <!-- //headerType -->

    <main id="mainType">
        <section id="sliderType" class="slider__wrap nexon section scroll">
        <h2 class="blind">์Šฌ๋ผ์ด๋“œ ์˜์—ญ</h2>
        <div class="slider__inner">
            <!-- <div class="slider">
            <div class="slider__img">
                <div class="desc">
                <span>ANIMALS</span>
                <h3>cUTE ANIMALS</h3>
                <p>
                    ๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์—๊ฒŒ ์ƒˆ๋กœ์šด ์นœ๊ตฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ํ•˜๊ณ  ์‹ถ๋‚˜์š”?!<br />
                    ์—ฌ๊ธฐ ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์œผ๋กœ ์–ด์„œ ์˜ค์„ธ์š”!
                </p>
                <div class="btn">
                    <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                    <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                </div>
                </div>
            </div>
            <div class="slider__arrow">
                <a href="#" class="left"><span class="ir">์ด์ „ ์ด๋ฏธ์ง€</span></a>
                <a href="#" class="right"><span class="ir">๋‹ค์Œ ์ด๋ฏธ์ง€</span></a>
            </div>
            <div class="slider__dot">
                <a href="#" class="dot active"><span class="ir">1</span></a>
                <a href="#" class="dot"><span class="ir">2</span></a>
                <a href="#" class="dot"><span class="ir">3</span></a>
                <a href="#" class="play"><span class="ir">ํ”Œ๋ ˆ์ด</span></a>
                <a href="#" class="stop"><span class="ir">์ •์ง€</span></a>
            </div>
            </div> -->
        <!-- Swiper -->
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <div class="desc">
                    <span>ANIMALS</span>
                    <h3>cUTE ANIMALS</h3>
                    <p>
                        ๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์—๊ฒŒ ์ƒˆ๋กœ์šด ์นœ๊ตฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ํ•˜๊ณ  ์‹ถ๋‚˜์š”?!<br />
                        ์—ฌ๊ธฐ ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์œผ๋กœ ์–ด์„œ ์˜ค์„ธ์š”!
                    </p>
                    <div class="btn">
                        <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                        <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                    </div>
                    </div>
                </div>
                <div class="swiper-slide">
                    <div class="desc">
                    <span>ANIMALS</span>
                    <h3>cUTE ANIMALS</h3>
                    <p>
                        ๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์—๊ฒŒ ์ƒˆ๋กœ์šด ์นœ๊ตฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ํ•˜๊ณ  ์‹ถ๋‚˜์š”?!<br />
                        ์—ฌ๊ธฐ ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์œผ๋กœ ์–ด์„œ ์˜ค์„ธ์š”!
                    </p>
                    <div class="btn">
                        <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                        <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                    </div>
                    </div>

                </div>
                <div class="swiper-slide">
                    <div class="desc">
                    <span>ANIMALS</span>
                    <h3>cUTE ANIMALS</h3>
                    <p>
                        ๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์—๊ฒŒ ์ƒˆ๋กœ์šด ์นœ๊ตฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ํ•˜๊ณ  ์‹ถ๋‚˜์š”?!<br />
                        ์—ฌ๊ธฐ ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์œผ๋กœ ์–ด์„œ ์˜ค์„ธ์š”!
                    </p>
                    <div class="btn">
                        <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                        <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                    </div>
                    </div>
                </div>
                </div>
                <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div>
                <div class="swiper-pagination"></div>
            </div>
            </div>
        </section>
        <!-- //sliderType -->

        <section id="imageType" class="image__wrap nexon section scroll">
        <h2>์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›</h2>
        <p>๐Ÿถ ๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์— ๋งž๋Š” ๋ฐ˜์„ ๊ณจ๋ผ์ฃผ์„ธ์š”!๐Ÿฑ</p>
        <div class="image__inner container">
            <article class="image img1">
            <h3 class="image__title">๋ฉ๋ฉ ์œ ์น˜์›</h3>
            <p class="image__desc">
                ๊ฐ•์•„์ง€๋Š” ๋งค์šฐ ๊ท€์—ฝ์Šต๋‹ˆ๋‹ค. ํ™œ๋™์ ์ธ ๋ชจ์Šต์ด ๊ท€์—ฝ์Šต๋‹ˆ๋‹ค. ๊ฐ•์•„์ง€๋Š”
                ๊ธฐ๋ปํ•  ๋•Œ๋„ ๊ท€์—ฝ๊ณ  ์‹œ๋ฌด๋ฃฉํ•  ๋•Œ๋„ ๊ท€์—ฝ์Šต๋‹ˆ๋‹ค.
            </p>
            <a href="#" title="์ž์„ธํžˆ ๋ณด๊ธฐ" class="image__btn">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
            </article>
            <article class="image img2">
            <h3 class="image__title">์•ผ์˜น ์œ ์น˜์›</h3>
            <p class="image__desc">
                ๊ณ ์–‘์ด๋Š” ๋งค์šฐ ๊ท€์—ฝ์Šต๋‹ˆ๋‹ค. ๋„๋„ํ•˜๋ฉด์„œ๋„ ์• ๊ต๊ฐ€ ๋งŽ์Šต๋‹ˆ๋‹ค. ๊ณ ์–‘์ด๋Š”
                ์€๊ทผํ•˜๊ฒŒ ๋‹ค๊ฐ€์˜ค๋Š” ๊ฒƒ์ด ๋งค๋ ฅ์ ์ž…๋‹ˆ๋‹ค.
            </p>
            <a href="#" title="์ž์„ธํžˆ ๋ณด๊ธฐ" class="image__btn yellow"
                >์ž์„ธํžˆ ๋ณด๊ธฐ</a
            >
            </article>
        </div>
        </section>
        <!-- //imageType -->

        <section id="imgTextType" class="imgText__wrap nexon section scroll">
        <h2 class="blind">์• ๋‹ˆ๋ฉ€ ์œ ์น˜์› ์‚ดํŽด๋ณด๊ธฐ</h2>
        <div class="imgText__inner container">
            <div class="imgText__txt">
            <span>ANIMALS</span>
            <h3>์• ๋‹ˆ๋ฉ€ ์œ ์น˜์› ์‚ดํŽด๋ณด๊ธฐ</h3>
            <p>
                ๊ต์œก ๋ฐ ์‚ฌํšŒ์„ฑ์ด ํ•„์š”ํ•œ ๋ฐ˜๋ ค๋™๋ฌผ๋“ค์˜ ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์› ์†Œ๊ฐœ ์‚ฌ์ดํŠธ ์ž…๋‹ˆ๋‹ค.
            </p>
            <ul>
                <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="#">ANIMALS Youtube</a></li>
            </ul>
            </div>
            <div class="imgText__img img1">
            <li><a href="#">๋ฉ๋ฉ ์œ ์น˜์› ์‚ฌ์ดํŠธ</a></li>
            </div>
            <div class="imgText__img img2">
            <li><a href="#" class="blue">์•ผ์˜น ์œ ์น˜์› ์‚ฌ์ดํŠธ</a></li>
            </div>
        </div>
        </section>
        <!-- //imgTextType -->

        <section id="cardType" class="card__wrap nexon section scroll">
        <h2>์• ๋‹ˆ๋ฉ€ ํ™œ๋™ ์†Œ๊ฐœ ๐Ÿ“</h2>
        <p>์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์˜ ๋Œ€ํ‘œ์ ์ธ ํ™œ๋™ ๋ฆฌ์ŠคํŠธ ์ž…๋‹ˆ๋‹ค.</p>
        <div class="card__inner container">
            <article class="card">
            <figure class="card__header">
                <img src="asset/img/card_bg01_01.jpg" alt="์ƒ์—… ์ „์‹œ" />
            </figure>
            <div class="card__body">
                <h3 class="tit">๊ฐœ์ธ ํ™œ๋™ ์‹œ๊ฐ„</h3>
                <p class="desc">
                ๋‹น์‹ ์˜ ๊ฐ๊ฐ์˜ ๋ฐ˜๋ ค๋™๋ฌผ์˜ ๋งž์ถค ๊ต์œก ํ™œ๋™์ž…๋‹ˆ๋‹ค. ๊ฐ ์• ๋‹ˆ๋ฉ€๋“ค์˜ ์„ฑํ–ฅ ๋ฐ ๊ณ ์น ์ ์— ๋Œ€ํ•˜์—ฌ ์ „๋ฌธ๊ฐ€๋“ค๊ณผ ๋ถ„์„ํ•˜๊ณ  1:1 ๋งž์ถคํ˜•์œผ๋กœ ๊ต์œก์ด ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.
                </p>
                <a class="btn" href="#">
                ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                <span aria-hidden="true">
                    <svg
                    width="65"
                    height="8"
                    viewBox="0 0 65 8"
                    fill="none"
                    xmlns="http://www.w3.org/2000/svg"
                    >
                    <path
                        d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                        fill="black"
                    />
                    </svg>
                </span>
                </a>
            </div>
            </article>
            <article class="card">
            <figure class="card__header">
                <img src="asset/img/card_bg01_02.jpg" alt="๋ฏธ์ˆ  ์ „์‹œ" />
            </figure>
            <div class="card__body">
                <h3 class="tit">๊ฐ„์‹ ์‹œ๊ฐ„</h3>
                <p class="desc">
                ์‹์‚ฌ ํ›ˆ๋ จ์„ ํ•จ๊ป˜ ๋™๋ฐ˜ํ•˜๋ฉฐ ์‚ฌ๋ฃŒ์™€ ํ•จ๊ป˜ ์ˆ˜์ œ๋กœ ๋งŒ๋“  ๊ฑด๊ฐ• ๊ฐ„์‹์ด ์ œ๊ณต๋ฉ๋‹ˆ๋‹ค. ํ•„์š”์— ๋”ฐ๋ผ ์ง์ ‘ ์„ ํƒํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ฃผ์˜ ์‚ฌํ•ญ์— ๋”ฐ๋ผ ํ•ด๋‹น ์žฌ๋ฃŒ๋ฅผ ๋จน์ง€ ๋ชปํ•˜๋Š” ๊ฒฝ์šฐ ๋”ฐ๋กœ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
                </p>
                <a class="btn" href="#">
                ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                <span aria-hidden="true">
                    <svg
                    width="65"
                    height="8"
                    viewBox="0 0 65 8"
                    fill="none"
                    xmlns="http://www.w3.org/2000/svg"
                    >
                    <path
                        d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                        fill="black"
                    />
                    </svg>
                </span>
                </a>
            </div>
            </article>
            <article class="card">
            <figure class="card__header">
                <img src="asset/img/card_bg01_03.jpg" alt="์‚ฌ์ง„ ์ „์‹œ" />
            </figure>
            <div class="card__body">
                <h3 class="tit">๋‹จ์ฒด ํ™œ๋™ ์‹œ๊ฐ„</h3>
                <p class="desc">
                ๊ฐœ์ธ ํ™œ๋™๊ณผ ๋‹ฌ๋ฆฌ ๋‹จ์ฒด๋กœ ํ™œ๋™ํ•˜๋Š” ์‹œ๊ฐ„์ด๋ฉฐ ๊ฐ ์• ๋‹ˆ๋ฉ€๋“ค์˜ ์‚ฌํšŒ์„ฑ, ์‚ฌ๊ต์„ฑ์„ ๊ธฐ๋ฅด๊ธฐ ์œ„ํ•œ ๊ต์œก ์‹œ๊ฐ„ ์ž…๋‹ˆ๋‹ค. ๊ฐ ์„ฑํ–ฅ์— ๋”ฐ๋ผ ๋ถ„๋ฆฌ ํ•˜์—ฌ ํ™œ๋™ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
                </p>
                <a class="btn" href="#">
                ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                <span aria-hidden="true">
                    <svg
                    width="65"
                    height="8"
                    viewBox="0 0 65 8"
                    fill="none"
                    xmlns="http://www.w3.org/2000/svg"
                    >
                    <path
                        d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                        fill="black"
                    />
                    </svg>
                </span>
                </a>
            </div>
            </article>
        </div>
        </section>
        <!-- //cardType -->

        <section id="bannerType" class="banner__wrap nexon section scroll">
        <h2 class="blind">๋ฐฐ๋„ˆ ์˜์—ญ</h2>
        <div class="banner__inner">
            <h3 class="title">HAPPY ANIMALS</h3>
            <p class="desc">
            ๋ฐ”์œ ๋‹น์‹ ์˜ ๊ท€์—ฌ์šด ๊ฐ•์•„์ง€, ๊ณ ์–‘์ด๋“ค์„ ์œ„ํ•œ ์•ˆ์‹์ฒ˜ ํ•œ ๋ฒˆ ๋งก๊ฒจ๋ณด์„ธ์š”!
            <a href="#" title="๊ณ ์–‘์ด ๋ณด๋Ÿฌ๊ฐ€๊ธฐ"
                >์• ๋‹ˆ๋ฉ€ ์œ ์น˜์› GO</a
            >
            </p>
            <span class="small">CUTE ANIMALS</span>
        </div>
        </section>
        <!-- //bannerType -->

        <section id="textType" class="text__wrap section nexon scroll">
        <span>ANIMALS</span>
        <h2 class="mb70">์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค.</h2>
        <div class="text__inner container">
            <div class="text t1">
            <h3 class="text__title">ํ™ˆํŽ˜์ด์ง€</h3>
            <p class="text__desc">์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์˜ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€ ์ž…๋‹ˆ๋‹ค. ์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์˜ ๊ฐ ๊ณผ์ •๊ณผ ํ™œ๋™ ์‚ฌ์ง„ ๋“ฑ์„ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
            <div class="text t2">
            <h3 class="text__title">๊ณต์ง€์‚ฌํ•ญ</h3>
            <p class="text__desc">์• ๋‹ˆ๋ฉ€ ์œ ์น˜์›์˜ ํ–‰์‚ฌ, ์ผ์ •, ๋ชจ์ง‘ ๋“ฑ ์ค‘์š” ์‚ฌํ•ญ๋“ค์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
            <div class="text t3">
            <h3 class="text__title">์ฃผ์˜ํ•ด์š”</h3>
            <p class="text__desc">๋‹น์‹ ์˜ ๋ฐ˜๋ ค ๋™๋ฌผ์— ๋Œ€ํ•œ ์ฃผ์˜์ (์•Œ๋ ˆ๋ฅด๊ธฐ, ํ–‰๋™, ์„ฑ๊ฒฉ ๋“ฑ)์„ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
            <div class="text t4">
            <h3 class="text__title">์นญ์ฐฌํ•ด์š”</h3>
            <p class="text__desc">์ด ๋‹ฌ์˜ ๋ฒ ์ŠคํŠธ ์• ๋‹ˆ๋ฉ€ ํ•™์ƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
            <div class="text t5">
            <h3 class="text__title">์ถ”์ฒœํ•ด์š”</h3>
            <p class="text__desc">์นญ์ฐฌํ•ด์š”์™€ ์„œ์šดํ•ด์š”์— ํ•ด๋‹นํ•˜๋Š” ํˆฌํ‘œ๋ฅผ ์ง„ํ–‰ํ•˜๋Š” ๊ณณ์ž…๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
            <div class="text t6">
            <h3 class="text__title">์„œ์šดํ•ด์š”</h3>
            <p class="text__desc">๊ฐ ํ•™์ƒ๋“ค์˜ ๋ฒŒ์ ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p>
            <a class="text_btn" href="/">๋”๋ณด๊ธฐ</a>
            </div>
        </div>
        </section>
        <!-- //textType -->

    </main>
    <!-- //mainType -->

    <footer id="footerType" class="footer__wrap nexon section scroll">
        <h2 class="blind">ํ‘ธํ„ฐ ์˜์—ญ</h2>
        <div class="footer__inner container">
        <div class="footer__menu">
            <div>
            <h3>์‚ฌ์ดํŠธ</h3>
            <ul>
                <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
            </ul>
            </div>
            <div>
            <h3>ํ—ค๋” ์˜์—ญ</h3>
            <ul>
                <li><a href="#">๋ฉ”๋‰ด ์œ ํ˜•01</a></li>
                <li><a href="#">๋ฉ”๋‰ด ์œ ํ˜•02</a></li>
            </ul>
            </div>
            <div>
            <h3>์Šฌ๋ผ์ด๋“œ ์˜์—ญ</h3>
            <ul>
                <li><a href="#">์Šฌ๋ผ์ด๋“œ ์œ ํ˜•01</a></li>
                <li><a href="#">์Šฌ๋ผ์ด๋“œ ์œ ํ˜•02</a></li>
            </ul>
            </div>
            <div>
            <h3>์ด๋ฏธ์ง€ ์˜์—ญ</h3>
            <ul>
                <li><a href="#">์ด๋ฏธ์ง€ ์œ ํ˜•01</a></li>
                <li><a href="#">์ด๋ฏธ์ง€ ์œ ํ˜•02</a></li>
                <li><a href="#">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•01</a></li>
                <li><a href="#">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•02</a></li>
                <li><a href="#">ํ…์ŠคํŠธ ์œ ํ˜•01</a></li>
            </ul>
            </div>
            <div>
            <h3>์ปจํ…์ธ  ์˜์—ญ</h3>
            <ul>
                <li><a href="/">์นด๋“œ ์œ ํ˜•01</a></li>
                <li><a href="/">์นด๋“œ ์œ ํ˜•02</a></li>
                <li><a href="/">์นด๋“œ ์œ ํ˜•03</a></li>
            </ul>
            </div>
            <div>
            <h3>ํ‘ธํ„ฐ ์˜์—ญ</h3>
            <ul>
                <li><a href="/">ํ‘ธํ„ฐ ๋ฉ”๋‰ด ์œ ํ˜•01</a></li>
                <li><a href="/">ํ‘ธํ„ฐ ์ปจํ…ํŠธ ์œ ํ˜•02</a></li>
                <li><a href="/">ํ‘ธํ„ฐ ์ด๋ฉ”์ผ ์œ ํ˜•03</a></li>
            </ul>
            </div>
        </div>
        <div class="footer__right">
            2022 LEEHAEUN. Portfolio is Power<br />
            All rights reserved.
        </div>
        </div>
    </footer>
    <!-- //footerType -->

    <script src="../site/asset/js/swiper-bundle.min.js"></script>

    </body>

#2. CSS

! Tip !
์‹ค์ œ ์‚ฌ์ดํŠธ๋ฅผ ์ œ์ž‘ํ•  ๋• ์˜ค๋ฅ˜๋ฅผ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ๋”ฐ๋กœ css์†Œ์Šค๋ฅผ ์ œ์ž‘ ํ›„ ๋งํฌ๋กœ ์„ ์–ธํ•ด์ค๋‹ˆ๋‹ค.
๋˜ํ•œ ๋ฐ˜์‘ํ˜•์€ 960px 600px์„ ๊ธฐ์ค€์œผ๋กœ ํ•˜์—ฌ ๊ฐ ์„น์…˜ ๋ณ„๋กœ ๋ ˆ์ด์•„์›ƒ, ์ปจํ…์ธ  ์˜์—ญ, ํฌ๊ธฐ, ์ƒ‰์ƒ ๋“ฑ์„ ์ˆ˜์ •ํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฐ˜์‘ํ˜• ์ž‘์—… ์‹œ ์ฃผ์˜ํ•  ์ ์€ ๊ณตํ†ต ์š”์†Œ ์„ค์ •๊ณผ ์†์„ฑ์—์„œ ํฌ์ง€์…˜์„ ์‚ฌ์šฉํ–ˆ์„ ๊ฒฝ์šฐ ๋ฐ˜์‘ํ˜•(์ง€์ •ํฌ๊ธฐ) ๊ธฐ์ค€์—์„œ ๋‹ค์‹œ ์œ„์น˜๋ฅผ ์žก์•„์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
์•„๋ž˜๋Š” ๊ฐ ์œ ํ˜• ๋ณ„ CSS ์†Œ์Šค ์ž…๋‹ˆ๋‹ค! ( + header์œ ํ˜•์€ ๊ณง ์ถ”๊ฐ€ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.)

<link rel="stylesheet" href="/๊ฒฝ๋กœ/swiper.css"/> : ์™ผ์ชฝ๊ณผ ๊ฐ™์ด HTML์— ์Šค์™€์ดํผ ํ”„๋ฆฌ ์†Œ์Šค๋ฅผ ์ €์žฅํ•˜์—ฌ ๋”ฐ๋กœ ๋„ฃ์–ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ’ก Header ๋ณด๊ธฐ
/* ์ค€๋น„์ค‘ ์ž…๋‹ˆ๋‹ค */
๐Ÿ’ก Slider ๋ณด๊ธฐ

์Šค์™€์ดํผ CSS์˜ ์šฐ์„ ์ˆœ์œ„ ๋•Œ๋ฌธ์— !important๋ฅผ ๋ถ™์—ฌ์ฃผ์–ด ์šฐ์„ ์ˆœ์œ„๋ฅผ ๋ณ€๊ฒฝํ•ด์ค๋‹ˆ๋‹ค.

/* slider Type */
.slider__inner {
    margin-top: 70px;
}

/* swiper */
.swiper-slide {
    background: url(../img/slider_type01_04.jpg) no-repeat center / cover;
}
.swiper-slide .desc {
    width: 1160px;
    margin: 0 auto;
    padding: 100px 20px;
    box-sizing: border-box;
}
.swiper-slide .desc span {
    font-size: 16px;
    height: 20px;
    line-height: 15px;
    background-color: #fff;
    padding: 6px 14px 0 14px;
    border-radius: 30px;
    text-transform:uppercase;
    margin-bottom: 15px;
    display: inline-block;
}
.swiper-slide .desc h3 {
    font-size: 110px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-top: 10px;
    margin-left: -8px;
}
.swiper-slide .desc p {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 120px;
}
.swiper-slide .desc .btn a {
    font-size: 16px;
    background-color: #fff;
    padding: 11px 50px;
    display: inline-block;
}
.swiper-slide .desc .btn a.black {
    background: #000;
    color: #fff;
}
.swiper-button-next,
.swiper-button-prev {
    width: 30px !important;
    height: 56px !important;
    background-image: url(../img/slider_icon02.svg);
}
.swiper-button-next {
    background-position: -50px 0px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    opacity: 0;
}
.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    background-image: url(../img/slider_icon02.svg) !important;
    background-position: -20px -70px !important;
    background-color: transparent !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background-position: 0 -70px !important;
}

/* ๋ฐ˜์‘ํ˜• */
@media (max-width: 960px){
    .swiper-slide .desc {
        width: 100%;
        text-align: center;
    }
    .swiper-slide .desc h3 {
        font-size: 70px;
    }
}
@media (max-width: 600px){
    .swiper-slide .desc {
        padding: 80px 0;
    }
    .swiper-slide .desc h3 {
        font-size: 40px;
    }
    .swiper-slide .desc p {
        font-size: 16px;
        margin-bottom: 50px;
    }
    .swiper-slide .desc .btn a {
        padding: 10px 25px;
    }
}
@media (max-width: 480px){}
๐Ÿ’ก Image ๋ณด๊ธฐ
/* img type */
.image__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.image {
    width: 49%;
    height: 370px;
    color: #fff;
    padding: 200px 30px 30px 30px;
    border-radius: 10px;
    box-sizing: border-box;
}
.image.img1 {
    background: url(../img/img_bg01_01.jpg) no-repeat center;
    background-size: cover;
}
.image.img2 {
    background: url(../img/img_bg01_02.jpg) no-repeat center;
    background-size: cover;
}
.image__title {
    font-size: 32px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.image__desc {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.5;
    /* 2์ค„ ํšจ๊ณผ */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-right: 30px;
}
.image__btn {
    font-size: 16px;
    color: #fff;
    background-color: #a7844f;
    padding: 10px 20px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 20px;
}
.image__btn.yellow {
    background-color: #687553;
}
.image__btn:hover {
    background: #fff;
    color: #000;
}

/* ๋ฐ˜์‘ํ˜• */
@media(max-width: 600px){
    .image__inner {
        flex-direction: column;
    }
    .image {
        width: 100%;
        padding: 205px 20px 20px 20px;
    }
    .image:first-child {
        margin-bottom: 20px;
    }
    .image__title {
        font-size: 24px;
    }
    .image__desc {
        font-size: 16px;
    }
}
๐Ÿ’ก Image Text ๋ณด๊ธฐ
/* imgText Type */
.imgText__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.imgText__inner > div {
    width: 32%;
    height: 500px;
}
.imgText__txt span {
    font-size: 16px;
    color: rgb(133, 133, 133);
    text-decoration: underline;
    text-underline-position: under;
    margin-bottom: 20px;
    display: block;
    text-align: left;
}
.imgText__txt h3 {
    font-size: 50px;
    font-weight: 400;
    color: #6f6257;
    word-break: keep-all;
    line-height: 1.4;
    margin-bottom: 20px;
}
.imgText__txt p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
}
.imgText__txt ul {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}
.imgText__txt ul li {
    position: relative;
    padding-left: 20px;
}
.imgText__txt ul li a {
    color: #666;
}
.imgText__txt ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    left: 5px;
    top: 9px;
    background: #666;
}
.imgText__img {
    border-radius: 10px;
    position: relative;
}
.imgText__img a {
    position: absolute;
    left: 30px;
    bottom: 30px;
    background-color: #181715;
    color: #fff;
    font-size: 18px;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}
.imgText__img a:hover {
    background-color: #ededed;
    color: #181818;
}
/* .imgText__img a.blue {
    background-color: #7c2b39;
} */
.imgText__img.img1 {
    background: url(../img/imgText_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
    background: url(../img/imgText_bg02.jpg) no-repeat center / cover;
}

/* ๋ฐ˜์‘ํ˜• */
@media(max-width: 600px){
    .imgText__txt span {
        text-align: center;
        font-size: 14px;
        margin-bottom: 10px;
    }
    .imgText__txt h3 {
        font-size: 40px;
    }

    .imgText__txt p {
        margin-bottom: 50px;
        font-size: 16px;
    }

    .imgText__inner > div.imgText__img {
        width: 100%;
        height: 200px;
    }
    .imgText__inner > div.imgText__img.img1 {
        margin-bottom: 20px;
    }

    .imgText__img a {
        left: 20px;
        bottom: 20px;
    }
}
๐Ÿ’ก Card ๋ณด๊ธฐ
/* cardType */
.card__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* ์ค‘์‹ฌ์„ ๊ธฐ์ค€์œผ๋กœ ํ•˜์—ฌ ์ •๋ ฌ์— ๋งž๊ฒŒ ๋ชจ์•„์ค€๋‹ค.*/
}
.card {
    width: 32%;
    border-radius: 10px;
    background: #f5f5f5;
}
.card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.card__body {
    padding: 24px;
}
.card__body .tit {
    font-size: 24px;
    margin-bottom: 10px;
    /* ํ•œ์ค„ ํšจ๊ณผ - ํ…์ŠคํŠธ๊ฐ€ ํ•œ์ค„์„ ๋„˜์–ด๊ฐ€๋ฉด ์ž๋™์œผ๋กœ ...์ฒ˜๋ฆฌ */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 20px;
}
.card__body .desc {
    font-size: 18px;
    line-height: 1.4;
    color: rgb(126, 126, 126);
    margin-bottom: 20px;
    font-weight: 300;
    /* ์„ธ์ค„ ํšจ๊ณผ */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.card__body span {
    margin-left: 10px;
}

@media(max-width: 960px){
    .card__inner {
        flex-wrap: wrap;
    }
    .card {
        width: 48%;
    }

    .card:last-child {
        display: none;
    }

    .card__body .desc {
        font-size: 16px;
    }
}

/* ๋ฐ˜์‘ํ˜• */
@media(max-width: 600px){
    .card {
        width: 100%;
    }

    .card {
        margin-bottom: 20px;
    }

    .card__body {
        padding: 20px;
    }

    .card:last-child {
        display: inline-block;
    }
}
๐Ÿ’ก Banner ๋ณด๊ธฐ
/* banner Type */
.banner__inner {
    background-image: url(../img/banner_type01.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    padding: 120px 0;
    color: #fff;
}
.banner__inner .title {
    font-size: 60px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 40px;
}
.banner__inner .desc {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 70px;
}
.banner__inner .desc a {
    color: #fff;
    display: block;
}
.banner__inner .desc a:hover {
    text-decoration: underline;
}
.banner__inner .small {
    font-size: 16px;
    text-decoration: underline;
}

/* ๋ฐ˜์‘ํ˜• */
@media(max-width: 960px){
    .banner__inner {
        padding: 100px 0;
    }
}
@media(max-width: 600px){
    .banner__inner {
        padding: 80px 0;
    }
    .banner__inner .title {
        font-size: 30px;
        margin-bottom: 20px;
    }
    .banner__inner .desc {
        font-size: 16px;
        margin-bottom: 40px;
    }
}
๐Ÿ’ก Text ๋ณด๊ธฐ
/* text Type */
.text__wrap span {
    display: block;
    color: #666;
    text-align: center;
    font-size: 16px;
    text-underline-position: underline;
    margin-bottom: 16px;
}
.text__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.text {
    width: 32%;
    margin-bottom: 2%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    transition: background 0.3s;
}
.text:hover {
    background: #f5f5f5;
}
.text__title {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    padding-top: 75px;
}
.text__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url(../img/text_icons01.svg);
}
.text.t1 .text__title::before {
    background-position: 0 0;
}
.text.t2 .text__title::before {
    background-position: -60px 0;
}
.text.t3 .text__title::before {
    background-position: -120px 0;
}
.text.t4 .text__title::before {
    background-position: -180px 0;
}
.text.t5 .text__title::before {
    background-position: -240px 0;
}
.text.t6 .text__title::before {
    background-position: -300px 0;
}
.text__desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
    color: #666;
}
.text_btn {
    font-size: 16px;
    line-height: 1;
    text-decoration: underline;
    text-underline-position: under; /* ์–ธ๋”๋ผ์ธ์ด ๊ธ€์ž์—์„œ ์ชผ๊ธˆ ๋” ๋‚ด๋ ค์˜จ๋‹ค. */
    color: #666;
}

/* ๋ฐ˜์‘ํ˜• */
@media (max-width: 960px) {
    .text {
        width: 49%;
        background: #F5F5F5;
    }
}
@media (max-width: 600px) {
    .text__title {
        font-size: 24px;
    }
    .text__desc {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .text {
        width: 100%;
    }
}    
๐Ÿ’ก Footer ๋ณด๊ธฐ
/* footer Type */
.footer__wrap {
    background: #1a1a1a;
    color: #fff;
}
.footer__menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 70px;
}
.footer__menu > div {
    width: 16%;
}
.footer__menu h3 {
    font-size: 18px;
    margin-bottom: 20px;
}
.footer__menu li a {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    margin-bottom: 10px;
    display: block;
}
.footer__right {
    font-weight: 300;
    border-top: 1px dashed #a3a3a3;
    text-align: center;
    padding-top: 40px;
    color: #666;
    line-height: 1.5;
}

/* ๋ฐ˜์‘ํ˜• */
@media(max-width: 960px) {
    .footer__menu {
        display: none;
    }
    .footer__right {
        padding-top: 0;
        border-top: 0;
    }
    .footer__wrap {
        padding: 40px 0;
    }
}

#3. JAVASCRIPT

ํ—ค๋”์™€ ์Šคํฌ๋กค ๊ธฐ๋Šฅ, ๊ทธ๋ฆฌ๊ณ  ์Šฌ๋ผ์ด๋“œ ๊ตฌํ˜„์„ ์œ„ํ•œ ์Šคํฌ๋ฆฝํŠธ ์ž…๋‹ˆ๋‹ค.
์Šค์™€์ดํผ๋ฅผ ์‚ฌ์šฉํ•˜๋”๋ผ๋„ ๋งํฌ ์™ธ์— ๋ณ€์ˆ˜ ์„ค์ •์€ ๋”ฐ๋กœ ํ•ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์Œ์€ ํ™”์‚ดํ‘œ๋ฅผ ๋ˆ„๋ฅผ ๊ฒฝ์šฐ or ํ„ฐ์น˜ํ•˜์—ฌ ์˜†์œผ๋กœ ๋ฐ€ ๊ฒฝ์šฐ ๋‹ค์Œ ์Šฌ๋ผ์ด๋“œ๋กœ ์ด๋™ํ•˜๋Š” ๊ฒƒ๊ณผ ์ž๋™์œผ๋กœ 2์ดˆ๋งˆ๋‹ค ๋„˜์–ด๊ฐ€๋„๋ก ๋ณ€์ˆ˜๋ฅผ ์„ค์ •ํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.
ํ—ค๋”์™€ ์Šคํฌ๋กค ๊ธฐ๋Šฅ์€ ํ›„์— ํ—ค๋” ์œ ํ˜•๊ณผ ํ•จ๊ป˜ ์ถ”๊ฐ€ ๋  ์˜ˆ์ • ์ž…๋‹ˆ๋‹ค.

<script src="/๊ฒฝ๋กœ/swiper-bundle.min.js"></script> : ์™ผ์ชฝ๊ณผ ๊ฐ™์ด HTML์— ์Šค์™€์ดํผ ํ”„๋ฆฌ ์†Œ์Šค๋ฅผ ์ €์žฅํ•˜์—ฌ ๋”ฐ๋กœ ๋„ฃ์–ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

var swiper = new Swiper(".mySwiper", {
    navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
    },
    autoplay: {
        delay: 2000,
    },
    pagination: {
        el: ".swiper-pagination",
        type: 'bullets',
    },
});

๐Ÿ“– ๊ฒฐ๊ณผ๋ณด๊ธฐ ๐Ÿ“–

ํ‘œ์ค€ ๐Ÿ–ฅ

๋ชจ๋ฐ”์ผ ๐Ÿ“ฑ

728x90

๋Œ“๊ธ€


Lucky Charms Rainbow
js
html
css