full page를 적용시키고 싶어, scroll snap을 이용했는데 화면이 짤려져 있습니다.. 원인이 뭘까요?
const page = () => {
return (
<div class="container">
<Navbar id='navbar' />
<div className="section" id='hero'>
<Hero />
</div>
<div className="section" id='a'>
</div>
<div className="section" id='b'>
<b />
</div>
<div className="section" id='c'>
<c />
</div>
<div className="section" id='d'>
<d/>
</div>
<Footer className="section" id='Footer'/>
</div>
)
}
export default page;
css:
html, body {
height: 100vh;
margin: 0;
overflow:hidden;
}
.container {
height: 100vh;
overflow-y: scroll;
scroll-behavior: smooth;
scroll-snap-type: y mandatory;
}
.section {
height: 100vh;
width: 100vw;
scroll-snap-align: start;
}
