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

Footer won't load #544

Open
niftyphil opened this issue Dec 5, 2021 · 1 comment
Open

Footer won't load #544

niftyphil opened this issue Dec 5, 2021 · 1 comment
Labels

Comments

@niftyphil
Copy link

niftyphil commented Dec 5, 2021

I wanted to have a very subtle entrance effect on all elements, and this solved it perfectly. One minor issue I have though, is that it only loads the footer about 25% of the time. The rest of the time the newsletter block in my footer just doesn't load. Is there any way I can exclude a single element, rather than having to manually add each element type on a pretty big site? I currently have it set to affect .sqs-block-content, .Index-gallery-item-content, and would like to exclude .newsletter-block

As it stands, I have this in the header code:

<script src="https://unpkg.com/scrollreveal@4"></script>
<script>
window.sr = ScrollReveal();
</script>
<style>
/*ensure elements load hidden before scrollreveal runs */
  html.sr body:not(.sqs-edit-mode).sqs-block-content, html.sr body:not(.sqs-edit-mode).Index-gallery-item-content {
    visibility: hidden;
  }
</style>

And this in the footer:

<script>
  sr.reveal ('.sqs-block-content, .Index-gallery-item-content, .Index-gallery-item-image ', {
    origin: 'bottom',
    distance: '50px',
    duration: 1000,
    easing: 'ease',
    mobile: true,
    reset: false,
    viewFactor: .2,
  });
</script>

Can anybody help with this? It's probably a pretty simple fix but I'm still fairly new to some aspects of coding

@niftyphil
Copy link
Author

I just discovered that the footer content is there, it just isn't visible...I have a newsletter form in the footer, and the autofill tries to autofill, and my mouse turns into a text cursor where the text boxes should be, I just can't see them...

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

No branches or pull requests

2 participants