Skip to content
Snippets Groups Projects
Commit 9578a4de authored by fmk17's avatar fmk17
Browse files

Add sticky header

parent 7a9f3cf5
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<script src="assets/js/script.js" defer></script> <script src="assets/js/script.js" defer></script>
</head> </head>
<body> <body>
<header class="pt-12 mb-0 flex flex-col items-center relative justify-center h-[80vh] bg-black"> <header class="pt-12 mb-0 flex flex-col items-center justify-center h-[80vh] bg-black sticky top-[calc(-80vh+56px)]">
<svg class="absolute top-0 left-0 w-full h-full bg-fundo box-shadow-fundo opacity-50"> <svg class="absolute top-0 left-0 w-full h-full bg-fundo box-shadow-fundo opacity-50">
<rect width="1" height="1" fill="url(#background)" /> <rect width="1" height="1" fill="url(#background)" />
<lineargradient id="background"> <lineargradient id="background">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment