Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
make sure the header stays on above any content that may be below it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jedlikowski committed Jun 3, 2017
1 parent 5e7f221 commit 89fba48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dist/sticky-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
width: 100%;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
-webkit-transform: translate(0, -102%);
transform: translate(0, -102%);
-webkit-transform: translate3d(0, -102%, 100px);
transform: translate3d(0, -102%, 100px);
z-index: 100;
}

.sticky-header.sticky-stick.sticky-show {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
-webkit-transform: translate3d(0, 0, 100px);
transform: translate3d(0, 0, 100px);
}
4 changes: 2 additions & 2 deletions src/sticky-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
left: 0;
width: 100%;
transition: all 0.3s ease;
transform: translate(0, -102%);
transform: translate3d(0, -102%, 100px);
z-index: 100;

&.sticky-show {
transform: translate(0, 0);
transform: translate3d(0, 0, 100px);
}
}
}

0 comments on commit 89fba48

Please sign in to comment.