Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
adangla authored Jan 11, 2023
1 parent 375aff4 commit 855c023
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fullpage_scroll_snap.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
html {
scroll-snap-type: y mandatory;
}

body {
margin: 0;
font-family: system-ui, sans-serif;
font-size: 2rem;
}

section {
scroll-snap-align: start;
display: grid;
height: 100vh;
place-content: center;
}

section:nth-child(odd) {
background-color: rgb(58.44% 90.74% 58.27%);
}

section:nth-child(even) {
background-color: rgb(24.4% 93.14% 82.45%);
}
32 changes: 32 additions & 0 deletions fullpage_scroll_snap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="fullpage_scroll_snap.css">
</head>
<body>
<section>
Card 1
</section>
<section>
Card 2
</section>
<section>
Card 3
</section>
<section>
Card 4
</section>
<section>
Section 5
</section>
<section>
Card 6
</section>
<section>
Card 7
</section>
<section>
Card 8
</section>
</body>
</html>

0 comments on commit 855c023

Please sign in to comment.