½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > CSS > ±âº» ¼Ò½º > Animated Navigation List »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
css
mysql
html
jquery
image
������
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
Animated Navigation List
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù ±âº» ¼Ò½º
´Ù¿î·Îµå Ƚ¼ö 2 ȸ
°£´Ü¼³¸í Javascript ¾øÀÌ ³×ÀÌ°ÔÀÌ¼Ç ¾Ö´Ï¸ÞÀÌ¼Ç È¿°ú¸¦ °£´ÜÈ÷ ±¸Çö
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

Javascript ¾øÀÌ ³×ÀÌ°ÔÀÌ¼Ç ¾Ö´Ï¸ÞÀÌ¼Ç È¿°ú¸¦ °£´ÜÈ÷ ±¸Çö ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾Ö´Ï¸ÞÀÌ¼Ç Ãâ·ÂºÎÅÍ È£¹ö±îÁö ±¸ÇöµË´Ï´Ù.

HTML ±¸Á¶

<nav aria-labelledby="nav-title-social">

  <ul>

    <li>

      <h2 id="nav-title-social">Alvaro's Social Media</h2>

    </li>

    <li>

      <a href="https://alvaromontoro.com" target="_blank">

        <i class="fa fa-globe" aria-hidden="true"></i>

        Website

      </a>

    </li>

    <li>

      <a href="https://www.linkedin.com/in/alvaromontoro/" target="_blank">

        <i class="fa-brands fa-linkedin" aria-hidden="true"></i>

        LinkedIn

      </a>

    </li>

    <li>

      <a href="https://front-end.social/@alvaromontoro" target="_blank">

        <i class="fa-brands fa-mastodon" aria-hidden="true"></i>

        Mastodon

      </a>

    </li>

    <li>

      <a href="https://twitter.com/alvaro_montoro" target="_blank">

        <i class="fa-brands fa-twitter" aria-hidden="true"></i>

        Twitter

      </a>

    </li>

    <li>

      <a href="https://www.youtube.com/c/alvaromontorocss" target="_blank">

        <i class="fa-brands fa-youtube" aria-hidden="true"></i>

        YouTube

      </a>

    </li>

    <li>

      <a href="https://codepen.io/alvaromontoro" target="_blank">

        <i class="fa-brands fa-codepen" aria-hidden="true"></i>

        CodePen

      </a>

    </li>

    <li>

      <a href="https://stackoverflow.com/users/3695983/alvaro-montoro" target="_blank">

        <i class="fa-brands fa-stack-overflow" aria-hidden="true"></i>

        StackOverflow

      </a>

    </li>

    <li>

      <a href="https://es.stackoverflow.com/users/250/alvaro-montoro" target="_blank">

        <i class="fa-brands fa-stack-overflow" aria-hidden="true"></i>

        StackOverflow (Espa&ntilde;ol)

      </a>

    </li>

  </ul>

</nav>



CSS ¼Ò½º



nav {

  filter: drop-shadow(0.25rem 0.25rem 0.5rem #0005);

  width: 100%;

  max-width: 14rem;

}


@keyframes firstShow {

  0%, 100% { transform: perspective(1000px) translate3d(0, 0, 0em); }

  50% { transform: perspective(1000px) translate3d(0, 0, 3em); }

}


@keyframes show {

  0% { opacity: 0; }

  100% { opacity: 1; }

}


ul {

  position: relative;

  aperspective: 1000px;

  list-style: none;

  padding-left: 0;

  box-sizing: border-box;

  border-radius: 1rem;

  transform-style: preserve-3d;

  perspective: 1000px;

  font:

    lighter 1rem Helvetica,

    sans-serif

    ;

  

  li {

    height: 3rem;

    display: flex;

    background: linear-gradient(#00000005, #0000), #fff;

    aborder-bottom: 1px solid #0001;

    abackground-clip: padding-box;

    box-shadow: inset 0 0 1rem -0.5rem #0002;

    transition: transform 0.35s, box-shadow 0.35s, background 0.35s;

    transform: translate3d(0,0,0);

    opacity: 0;

    animation: 

      firstShow 0.5s ease-in-out,

      show 0.15s linear forwards;

    

    &:nth-child(1) { animation-delay: 0.50s; }

    &:nth-child(2) { animation-delay: 0.60s; }

    &:nth-child(3) { animation-delay: 0.70s; }

    &:nth-child(4) { animation-delay: 0.80s; }

    &:nth-child(5) { animation-delay: 0.90s; }

    &:nth-child(6) { animation-delay: 1.00s; }

    &:nth-child(7) { animation-delay: 1.10s; }

    &:nth-child(8) { animation-delay: 1.20s; }

    &:nth-child(9) { animation-delay: 1.30s; }

    

    &:first-child {

      border-radius: 1rem 1rem 0 0;

    }

    

    &:last-child {

      border-radius: 0 0 1rem 1rem;

    }

    

    &:hover, &:focus-within {

      transform:  translate3d(0,0,3rem);

    }

    

    &:hover + &,

    &:has(+ &:focus-within),

    &:focus + &,

    &:has(+ &:focus-within){

      box-shadow: inset 0 1rem 1rem -1rem #0003;

      transform: translate3d(0,0,2rem);

    }

    &:has(+ &:hover),

    &:has(+ &:focus-within){

      box-shadow: inset 0 -1rem 1rem -1rem #0003;

    }

    &:hover + & + &,

    &:focus-within + & + &{

      box-shadow: inset 0 1rem 0.5rem -0.75rem #0002;

    }

    &:has(+ & + &:hover),

    &:has(+ & + &:focus-within){

      box-shadow: inset 0 -1rem 0.5rem -0.75rem #0002;

    }

  }

  

  h2, a {

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    flex: 1;

    padding: 0 1rem;

    text-decoration: none;

    color: #000;

  }

  

  h2 {

    font-size: 1rem;

    font-weight: 400;

  }

  

  i {

    margin-right: 0.25em;

    width: 1rem;

  }

}


@media (prefers-reduced-motion) {

  nav * {

    transition-duration: 0s !important;

    animation-duration: 0s !important;

  }

}


/* demo */

body {

  aperspective: 1000px;

  position: relative;

  margin: 0;

  min-height: 100vh;

  overflow: clip;

  display: grid;

  place-items: center;

  transition: background 1s;

  background: #fff;

}




 

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