Jump to content

Drawer Footer Animation

Recommended Posts

Posted

Site URL: https://kccbd.net

Hey there! I had recently purchased a plugin where the footer of my website would essentially slide out from the bottom of the page when scrolling down to the bottom. However, after applying it via code injection, it simply extended the footer with large, white empty space. I'm not sure if anyone would be able in identifying the rationale to it not working. Thank you so much!

The code used is as follows:

<style>footer {position:fixed;left:0;bottom:0;width:100%;box-sizing:border-box; max-width:100vw !important;z-index:-9;} footer .sqs-layout {word-wrap: break-word; width:100%;max-width:1200px;margin-left:auto;margin-right:auto;} html{background:#fff !important;}</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div class="footerbox" style="pointer-events:none;">
</div>
<script>
$(function(){
$( ".footerbox" ).insertAfter( $( "body" ) );
});
</script>
<script>
$(window).resize(function(){
var footheight = $("footer").outerHeight();
$(".footerbox").css({height: footheight});
});
</script>
<script>
$(function(){
var footheight = $("footer").outerHeight();
$(".footerbox").css({height: footheight});
});
</script>

Additionally, this is the URL to the website where I had purchased/accessed the code as an example of it in action:

Drawer Footer Squarespace Plugin — SquareStudio

  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

I've checked that the class footerbox cause the space

image.thumb.png.1f07d17a44794aa22569682571d51bde.png

Try adding to Home > Design > Custom Css to hide it

.footerbox {
  display: none;
}

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Thank you for responding. After applying the piece of code, it did indeed hide the blank white space; however, the footer still doesn't slide out from the bottom of the website as it is supposed to. Not sure if there is an issue within the coding itself that is preventing such from occurring?

Thank you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.