Skip to content

Instantly share code, notes, and snippets.

@swarad07
Created September 19, 2020 14:50
Show Gist options
  • Save swarad07/c39a766210a3c8aa20b402c4c9833a7d to your computer and use it in GitHub Desktop.
Save swarad07/c39a766210a3c8aa20b402c4c9833a7d to your computer and use it in GitHub Desktop.
position-sticky-2
.selector {
position: sticky;
// This can be any position you want the selector to stick to.
// Use left, right, bottom as well.
top: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment