Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General advice when using saos? #32

Open
socketopp opened this issue Mar 5, 2024 · 0 comments
Open

General advice when using saos? #32

socketopp opened this issue Mar 5, 2024 · 0 comments

Comments

@socketopp
Copy link

Hey,

What's the general advice for document layout when using saos? How to work with it when using a Layout file with headers and footers that change the height of the page.

Layout file

{# if condtions, don't show header on all pages etc}
<Header/>
{/if}
  <div class="relative w-full z-[100]">
      <slot/> // The main page is rendered here 
   </div>
 {# if condtions, don't show Footer on all pages etc}
<Footer/>
{/if}

Main page I have multiple Saos elements rendered but the height of the page seems to be jumpy?

<Saos once={true} animation={'from-left 1.5s cubic-bezier(0.35, 0.5, 0.65, 0.95) both'}>
  <section class="flex items-center justify-center h-auto">
    <Features />
  </section>
</Saos>

<style>
	@keyframes -global-from-left {
		0% {
			filter: blur(2px);
			transform: rotateX(5deg) translateX(-10vw) skewX(-5deg);
			opacity: 0;
		}
		100% {
			filter: blur(0);
			transform: rotateX(0deg) translateX(0) skewX(0deg);
			opacity: 1;
		}
	}
</style>

For me, it's quite buggy and glitchy but I think that's my fault mainly because of how things are rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant