Skip to content

Commit

Permalink
refactor: testing transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Sep 25, 2023
1 parent 013e5ee commit 91bfdf1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 0 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export default defineConfig({
mode: 'middleware',
}),
compressHTML: true,
experimental: {
viewTransitions: true
},
integrations: [
tailwind({
config: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { pathname } = new URL(Astro.request.url)

<header
x-bind:class="! open ? 'h-12' : 'h-full'"
class="ease-header fixed bottom-0 z-50 h-12 w-full overflow-hidden border-t bg-white transition-all duration-500 md:h-20"
class="ease-header fixed bottom-0 z-40 h-12 w-full overflow-hidden border-t bg-white transition-all duration-500 md:h-20"
x-data="{ open: false }"
>
<div class="justify-between md:flex md:px-8 md:py-6">
Expand Down
4 changes: 4 additions & 0 deletions src/app/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ section a {
.ease-header {
transition-timing-function: cubic-bezier(1, 0, 0, 0.81);
}

body {
position: relative;
}
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"forceConsistentCasingInFileNames": false,
"baseUrl": ".",
"baseUrl": "src",
"paths": {
"$modules/*": ["src/modules/*"],
"$app/*": ["src/app/*"],
"$core/*": ["src/core/*"]
"$modules/*": ["modules/*"],
"$app/*": ["app/*"],
"$core/*": ["core/*"]
}
},
"include": ["src"]
Expand Down

0 comments on commit 91bfdf1

Please sign in to comment.