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


¿À¹ö·¹ÀÌ ¸Þ´º µðÀÚÀÎÀÔ´Ï´Ù.

µ¿ÀûÀÎ È¿°ú¸¦ ÁÙ ¼ö À־ À¯¿ëÇÑ È¿°úÀÔ´Ï´Ù.
 


HTML ±¸Á¶

<header class="header">

    <h1>Vgnly.</h1>

    <button class="hamburger">

        <span></span>

        <span></span>

        <span></span>

    </button>

</header>


<div class="nav__extra-background"></div>

<nav class="nav">

    <div class="nav__content">

        <div class="nav__left">

            <div class="nav__links">

                <a href="#">Our solutions</a>

                <a href="#">Methods</a>

                <a href="#">Contact us</a>

            </div>


.
.
.

 



CSS(SCSS) ¼Ò½º

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  outline: none;

}


@font-face {

  font-family: 'Ageo Bold';

  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/2479807/ageo-heavy.woff2') format('woff2');

}


@font-face {

  font-family: 'Ageo Regular';

  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/2479807/ageo-regular.woff2') format('woff2');

}



body {

  font-family: 'Ageo Regular', sans-serif;

  line-height: 1.5;

}


a {

    text-decoration: none;

    color: inherit;

}



.container {

  max-width: 1140px;

  margin: 0 auto;

}



.header {

  position: relative;

  display: flex;

  justify-content: space-between;

  align-items: center;

  height: 80px;

  width: 100%;

  padding: 0 64px;

  z-index: 20;

  

  h1 {

    font-size: 16px;

    font-family: 'Ageo Bold';

    text-transform: uppercase;

  }

  

  button {

    border: none;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    cursor: pointer;

  }

}


.hamburger {

    display: flex;

    flex-direction: column;

    background: none;

    border: none;

    outline: none;

    

    span {

        display: inline-block;

        height: 2px;

        width: 30px;

        background-color: #000;

        margin-bottom: 10px;

        transition: 0.3s ease transform;

    }

    

    &__open {

        span:nth-child(1) {

            transform: rotate(-45deg) translate(-9px, 6px);

        }

        span:nth-child(2) {

            opacity: 0;   

        }

        

        span:nth-child(3) {

            transform: rotate(45deg) translate(-11px, -8px);

        }

    }

}



.hero {

  min-height: calc(100vh - 80px);

  display: flex;

  align-items: center;

  padding: 120px 0;

  

  h1 {

    max-width: 700px;

    font-size: 32px;

    

    span {

      font-family: 'Ageo Bold';

    }

  }

}



.nav {

    position: fixed;

    top: 0;

    left: 0;

    bottom: 0;

    right: 0;

    height: 100%;

    overflow: hidden;

    height: 0%;

    width: 100%;

    background-color: hsl(209, 63%, 16%);

    z-index: 9;

    

    &__extra-background {

        position: fixed;

        top: 0;

        bottom:0;

        right:0;

        left: 0;

        height: 0%;

        width: 100%;

        background-color: hsl(162, 73%, 74%);

        z-index: 2;

    }

    

    &__content {

        display: flex;

        align-items: center;

        max-width: 1140px;

        height: 100%;

        min-height: 100vh;

        padding: 120px 0;

        margin: 0 auto;

        color: hsl(210, 37%, 96%);

    }


    &__left {

        flex: 1;

    }


    &__right {

        max-width: 300px;

    }


    &__links {

        font-size: 80px;

        font-family: 'Ageo Bold';

        line-height: 1;

        margin-bottom: 80px;


        a {

            display: block;


            &:not(:last-child) {

                margin-bottom: 32px;

            }

            

            &:hover {

                color: hsl(162, 72%, 74%);

            }

        }

    }


    &__text {

        

        h3 {

            font-family: 'Ageo Bold';

        }

    }

.
.
.


JS ¼Ò½º

const navContent = document.querySelector('.nav__content');

const nav = document.querySelector('.nav');

const extraBackground = document.querySelector('.nav__extra-background');

const hamburger = document.querySelector('.hamburger');

const navLinks = document.querySelectorAll('.nav__links a');.
.
.
.

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


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