-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(katzencore): Updated Version Check, New Animation Strategy for m…
…ounting
- Loading branch information
Showing
4 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<script setup lang="ts"> | ||
const section1 = ref<HTMLElement | null>(null) | ||
const animation = useScrollAnimation({ element: section1 }) | ||
const globalScroll = useScrollAnimation({ global: true }) | ||
const screenScroll = useScrollAnimation({ screenHeight: true }) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<h1>Animation Test Page 2</h1> | ||
<NuxtLink | ||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" | ||
to="/animation_test" | ||
> | ||
Animation Test Page | ||
</NuxtLink> | ||
<div class="flex flex-col"> | ||
<div class="flex flex-row"> | ||
<p>On this page the useAnimation Composables are tested</p> | ||
</div> | ||
</div> | ||
|
||
<div class="fixed bottom-0 left-0 font-bold text-2xl text-black bg-white p-4 border border-black rounded-lg"> | ||
<span>GlobalScroll: {{ globalScroll }}</span> | ||
|
||
<br> | ||
|
||
<span>ScreenScroll: {{ screenScroll }}</span> | ||
</div> | ||
|
||
<div | ||
ref="section1" | ||
class="h-screen w-full bg-gray-100 flex flex-col items-center justify-between" | ||
> | ||
<h2>SECTION 1</h2> | ||
<p>{{ animation }}</p> | ||
</div> | ||
<div class="h-screen w-full bg-red-100 flex flex-col items-center justify-center"> | ||
<h2>SECTION 2</h2> | ||
</div> | ||
|
||
<div class="h-screen w-full bg-red-100 flex flex-col items-center justify-center"> | ||
<h2>SECTION 3</h2> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters