Skip to content

Commit

Permalink
Merge pull request #28 from rohits-web03/feat/snap-scroll
Browse files Browse the repository at this point in the history
[FEAT]: Snap-Scrolling on the ISRO-web homepage
  • Loading branch information
dakshsinghrathore authored Oct 8, 2023
2 parents 5077a52 + 8af9793 commit 27bf110
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
padding: 0;
box-sizing: border-box;
}

html{
scroll-snap-type: y mandatory;
}

body {
background: #000;
color: #fff;
Expand Down Expand Up @@ -94,6 +99,8 @@ section {
background-repeat: no-repeat;
background-size: cover;
text-transform: uppercase;
scroll-snap-align: start;
scroll-snap-stop: always;
/* object-fit: cover; */
}

Expand Down Expand Up @@ -275,6 +282,8 @@ section {
footer {
position: relative;
padding: 55px 0;
scroll-snap-align: start;
scroll-snap-stop: always;
}

footer ul {
Expand Down

0 comments on commit 27bf110

Please sign in to comment.