can you suggest a way to hide controls when the video
is scrolled under the fixed element
“`
<!DOCTYPE html><html lang=”en”><head><meta charset=”utf-8″>
<meta name=”viewport” content=”initial-scale=1″>
<title>Vapour Ware</title>
<style>
body {
background: #eef;
}
#headsection {
position: fixed;
width: 100%;
top: 0;
margin: 0;
height: 6.2em;
background: #eef;
}
main section{
padding-top: 6.3em;
}
#videosection video {
width: 400px;
height: 300px;
}
#empty {
height: 600px;
}
</style>
</head>
<body>
<section id=”headsection”>
<header id=”header”>
</header>
</section>
<main>
<section id=”videosection”>
<video id=”video” width=”400″ height=”300″ controls src=”https://archive.org/download/Popeye_forPresident/Popeye_forPresident_512kb.mp4″>
</video>
</section>
<section id=”empty”>
</section>
</main>
</body>
</html>