½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
swiper¸¦ ÀÌ¿ëÇÑ ¸ÞÀÎ À̹ÌÁö ½½¶óÀ̵å Landing page with swiper #css #swiper.js : happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > CSS > À̹ÌÁö > swiper¸¦ ÀÌ¿ëÇÑ ¸ÞÀÎ À̹ÌÁö ½½¶óÀ̵å Landing page with swiper #css #swiper.js »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
javascript
HTML
PHP
2022
Api
CSS
À¥¸ÞÀÏ
jquery
ASP
°¶·¯¸®
mysql
¸ð¹ÙÀÏ
mobile
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
swiper¸¦ ÀÌ¿ëÇÑ ¸ÞÀÎ À̹ÌÁö ½½¶óÀ̵å Landing page with swiper #css #swiper.js
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù À̹ÌÁö
´Ù¿î·Îµå Ƚ¼ö 1 ȸ
°£´Ü¼³¸í swiper¸¦ ÀÌ¿ëÇÑ ¸ÞÀÎ À̹ÌÁö ½½¶óÀ̵åÀÔ´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ



swiper¸¦ ÀÌ¿ëÇÑ ¸ÞÀÎ À̹ÌÁö ½½¶óÀ̵åÀÔ´Ï´Ù.

¼Ò½º¸¦ º¯°æÇÏ¿© ´Ù¾çÇÏ°Ô ÀÀ¿ë °¡´ÉÇÕ´Ï´Ù.



HTML ±¸Á¶

<main>

  <div>

    <span>discover</span>

    <h1>aquatic animals</h1>

    <hr>

    <p>Beauty and mystery are hidden under the sea. Explore with our application to know about Aquatic Animals.</p>

    <a href="#">download app</a>

  </div>

  <div class="swiper">

    <div class="swiper-wrapper">

      <div class="swiper-slide swiper-slide--one">

        <div>

          <h2>Jellyfish</h2>

          <p>Jellyfish and sea jellies are the informal common names given to the medusa-phase of certain gelatinous members of the subphylum Medusozoa, a major part of the phylum Cnidaria.</p>

          <a href="https://en.wikipedia.org/wiki/Jellyfish" target="_blank">explore</a>

        </div>

      </div>

      <div class="swiper-slide swiper-slide--two">

        <div>

          <h2>Seahorse</h2>

          <p>

            Seahorses are mainly found in shallow tropical and temperate salt water throughout the world. They live in sheltered areas such as seagrass beds, estuaries, coral reefs, and mangroves. Four species are found in Pacific waters from North America to South America.

          </p>

          <a href="https://en.wikipedia.org/wiki/Seahorse" target="_blank">explore</a>

        </div>

      </div>


      <div class="swiper-slide swiper-slide--three">


        <div>

          <h2>octopus</h2>

          <p>

            Octopuses inhabit various regions of the ocean, including coral reefs, pelagic waters, and the seabed; some live in the intertidal zone and others at abyssal depths. Most species grow quickly, mature early, and are short-lived.

          </p>

          <a href="https://en.wikipedia.org/wiki/Octopus" target="_blank">explore</a>

        </div>

      </div>


      <div class="swiper-slide swiper-slide--four">


        <div>

          <h2>Shark</h2>

          <p>

            Sharks are a group of elasmobranch fish characterized by a cartilaginous skeleton, five to seven gill slits on the sides of the head, and pectoral fins that are not fused to the head.

          </p>

          <a href="https://en.wikipedia.org/wiki/Shark" target="_blank">explore</a>

        </div>

      </div>


      <div class="swiper-slide swiper-slide--five">


        <div>

          <h2>Dolphin</h2>

          <p>

            Dolphins are widespread. Most species prefer the warm waters of the tropic zones, but some, such as the right whale dolphin, prefer colder climates. Dolphins feed largely on fish and squid, but a few, such as the orca, feed on large mammals such as seals.

          </p>

          <a href="https://en.wikipedia.org/wiki/Dolphin" target="_blank">explore</a>

        </div>

      </div>

    </div>

    <!-- Add Pagination -->

    <div class="swiper-pagination"></div>

  </div>

  <img src="https://cdn.pixabay.com/photo/2021/11/04/19/39/jellyfish-6769173_960_720.png" alt="" class="bg">

  <img src="https://cdn.pixabay.com/photo/2012/04/13/13/57/scallop-32506_960_720.png" alt="" class="bg2">

</main>



CSS(SCSS) ¼Ò½º

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@300;400;500;900&display=swap");


* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Open Sans", sans-serif;

}


main {

  position: relative;

  width: calc(min(90rem, 90%));

  margin: 0 auto;

  min-height: 100vh;

  column-gap: 3rem;

  padding-block: min(20vh, 3rem);

}


.bg {

  position: fixed;

  top: -4rem;

  left: -12rem;

  z-index: -1;

  opacity: 0;

}


.bg2 {

  position: fixed;

  bottom: -2rem;

  right: -3rem;

  z-index: -1;

  width: 9.375rem;

  opacity: 0;

}


main > div span {

  text-transform: uppercase;

  letter-spacing: 1.5px;

  font-size: 1rem;

  color: #717171;

}


main > div h1 {

  text-transform: capitalize;

  letter-spacing: 0.8px;

  font-family: "Roboto", sans-serif;

  font-weight: 900;

  font-size: clamp(3.4375rem, 3.25rem + 0.75vw, 4rem);

  background-color: #005baa;

  background-image: linear-gradient(45deg, #005baa, #000000);

  background-size: 100%;

  background-repeat: repeat;

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  -moz-background-clip: text;

  -moz-text-fill-color: transparent;

}


main > div hr {

  display: block;

  background: #005baa;

  height: 0.25rem;

  width: 6.25rem;

  border: none;

  margin: 1.125rem 0 1.875rem 0;

}


main > div p {

  line-height: 1.6;

}


main a {

  display: inline-block;

  text-decoration: none;

  text-transform: uppercase;

  color: #717171;

  font-weight: 500;

  background: #fff;

  border-radius: 3.125rem;

  transition: 0.3s ease-in-out;

}


main > div > a {

  border: 2px solid #c2c2c2;

  margin-top: 2.188rem;

  padding: 0.625rem 1.875rem;

}


main > div > a:hover {

  border: 0.125rem solid #005baa;

  color: #005baa;

}


.swiper {

  width: 100%;

  padding-top: 3.125rem;

}


.swiper-pagination-bullet,

.swiper-pagination-bullet-active {

  background: #fff;

}


.swiper-pagination {

  bottom: 1.25rem !important;

}


.swiper-slide {

  width: 18.75rem;

  height: 28.125rem;

  display: flex;

  flex-direction: column;

  justify-content: end;

  align-items: self-start;

}


.swiper-slide h2 {

  color: #fff;

  font-family: "Roboto", sans-serif;

  font-weight: 400;

  font-size: 1.4rem;

  line-height: 1.4;

  margin-bottom: 0.625rem;

  padding: 0 0 0 1.563rem;

  text-transform: uppercase;

}


.swiper-slide p {

  color: #dadada;

  font-family: "Roboto", sans-serif;

  font-weight: 300;

  padding: 0 1.563rem;

  line-height: 1.6;

  font-size: 0.75rem;

  display: -webkit-box;

  -webkit-line-clamp: 4;

  -webkit-box-orient: vertical;

  overflow: hidden;

}
.
.
.


JS ¼Ò½º

/*

inspiration

https://dribbble.com/shots/4684682-Aquatic-Animals

*/


var swiper = new Swiper(".swiper", {

  effect: "coverflow",

  grabCursor: true,

  centeredSlides: true,

  coverflowEffect: {

    rotate: 0,

    stretch: 0,

    depth: 100,

    modifier: 3,

    slideShadows: true

  },

  keyboard: {

    enabled: true

  },

  mousewheel: {

    thresholdDelta: 70

  },

  loop: true,

  pagination: {

    el: ".swiper-pagination",

    clickable: true

  },

  breakpoints: {

    640: {

      slidesPerView: 2

    },

    768: {

      slidesPerView: 1

    },

    1024: {

      slidesPerView: 2

    },

    1560: {

      slidesPerView: 3

    }

  }

});

 


÷ºÎÆÄÀÏÀ» ´Ù¿î·ÎµåÇϰųª ÇØ´ç »çÀÌÆ®·Î À̵¿ÇÏ¿© Àüü ¼Ò½º¸¦ È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð Àǰ߳²±â±â
µî·ÏµÈ ÀǰßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöŰ
 81335162 º¸ÀÌ´Â µµ¹è¹æÁö۸¦ ÀÔ·ÂÇϼ¼¿ä.