個人練習用:サイトパーツ、ハンバーガーメニュー
関連タイピング
-
プレイ回数3774英語長文673打
-
プレイ回数531英語長文795打
-
プレイ回数486英語長文542打
-
プレイ回数561英語長文1097打
-
プレイ回数652長文記号1049打
-
プレイ回数288英語長文517打
-
プレイ回数896英語長文1554打
-
プレイ回数106英語長文1295打
問題文
(<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; }