個人練習用:サイトパーツ、ハンバーガーメニュー

関連タイピング
-
自分練習用、英語長文
プレイ回数2092英語長文1127打 -
個人練習用で作りました。解説なしです。
プレイ回数1214英語長文1140打 -
解説なし、個人練習用につくりました。
プレイ回数665英語長文1054打 -
jQuery基本例文集です。解説なしです。
プレイ回数907英語長文1554打 -
ボックスのCSSを解説なしで
プレイ回数183英語長文760打 -
個人練習用:サイトパーツ、アコーディオン
プレイ回数143英語長文1379打 -
個人練習用の英語長文です。
プレイ回数543英語長文795打 -
動きのあるメニューバーのサンプルHTML、CSS
プレイ回数110英語長文2586打
問題文
(<nav><input type="checkbox" id="check">)
<nav><input type="checkbox" id="check">
(<span class="span1"></span>)
<span class="span1"></span>
(<span class="span2"></span><span class="span3"></span>)
<span class="span2"></span><span class="span3"></span>
(<label for="check"></label>)
<label for="check"></label>
(<ul><li>menu1</li><li>menu2</li>)
<ul><li>menu1</li><li>menu2</li>
(<li>menu3</li></ul></nav>)
<li>menu3</li></ul></nav>
(start css)
start css
(nav { position: relative; height: 100vh;)
nav { position: relative; height: 100vh;
(overflow: hidden; })
overflow: hidden; }
(label { width: 30px; height: 30px;)
label { width: 30px; height: 30px;
(border: 1px solid black; position: absolute;)
border: 1px solid black; position: absolute;
(right: 10px; top: 10px; z-index: 1000; })
right: 10px; top: 10px; z-index: 1000; }
(span { width: 20px; height: 1px; background-color: black;)
span { width: 20px; height: 1px; background-color: black;
(position: absolute; right: 15px;)
position: absolute; right: 15px;
(transition: .3s; z-index: 100; })
transition: .3s; z-index: 100; }
(.span1 { top: 20px; })
.span1 { top: 20px; }
(.span2 { top: 27px; })
.span2 { top: 27px; }
(.span3 { top: 34px; })
.span3 { top: 34px; }
(#check:checked ~ .span2 { display: none; })
#check:checked ~ .span2 { display: none; }
(#check:checked ~ .span1 { width: 27px;)
#check:checked ~ .span1 { width: 27px;
(transform: rotate(45deg); top: 27px; right: 12px; })
transform: rotate(45deg); top: 27px; right: 12px; }
(#check:checked ~ .span3 { width: 27px;)
#check:checked ~ .span3 { width: 27px;
(transform: rotate(-45deg); top: 27px; right: 12px; })
transform: rotate(-45deg); top: 27px; right: 12px; }
(#check { display: none; })
#check { display: none; }
(ul { width: 100%; height: 100%;)
ul { width: 100%; height: 100%;
(background-color: #2a9ee04a; margin: 0;)
background-color: #2a9ee04a; margin: 0;
(padding: 0; text-align: center;)
padding: 0; text-align: center;
(list-style: none; position: absolute;)
list-style: none; position: absolute;
(top: 0; right: -100%; transition: 1s; z-index: 10; })
top: 0; right: -100%; transition: 1s; z-index: 10; }
(li { margin-top: 20px; })
li { margin-top: 20px; }
(#check:checked ~ ul { right: 0; })
#check:checked ~ ul { right: 0; }