0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ハンバーガーメニューの作り方

Posted at

キャプチャ.JPG

    <div class="navbar__hamberger-icon">
      <div class="navbar__hamberger-icon-icon1"></div>
      <div class="navbar__hamberger-icon-icon1"></div>
      <div class="navbar__hamberger-icon-icon1"></div>
    </div>

htmlでは、

要素にclass名を付けるだけ

// ハンバーガーメニューのボタン(CSS)

&__hamberger-icon {
position: absolute;
top: 50%;
right: 5%;
transform: translate(-5%,-50%);
//ハンバーガーメニューのボタンを構成
&-icon1 {
width: 2rem;
height: .1rem;
background: #ffffff;
margin: 5px;
}
}
CSSでの要点
①ボタンの位置を調整する
②widthで棒線の長さ
③heightで棒線の高さ
④色、そして棒線の間の広さを決定する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?