簡単に作りました。
色々適当です。
jQuery使ってます
HTML
1<header>
2 <h1>サイトだよ</h1>
3 <span>MENU開けるよ</span>
4 <div>MENUだよ</div>
5</header>
6<section>
7 本文だぜ
8</section>
CSS
1*{
2 margin: 0;
3 padding: 0
4}
5header {
6 background: skyblue;
7 position: fixed;
8 z-index:100;
9 width:100vw;
10 top:0;
11}
12section {
13 margin-top: 2em;
14}
15h1 {
16 font-size: 2em;
17 display: inline-block;
18 font-weight: normal
19}
20div {
21 width :100vw;
22 height: calc(100vh - 2em);
23 display: none;
24}
javascript
1$(function () {
2 $('span').click(function () { $('div').animate({ height: 'toggle'}, 'slow' ); });
3 $('section').css('margin-top',$('header').outerHeight());
4});
完成したらこうなります