First 'build' using a CMS and having some issues, if anyone could help
Hello!
So I'm building a new website on Squarespace (for reasons) for a client, for pretty cheap as I'm just a design student and have very little real world experience. I understand HTML/CSS and can sort of understand javascript.
First issue: The client has requested a 'marquee' style text banner on their page, which I've created using the CSS translate3d animation property as I saw that using HTML marquee isn't a thing anymore.
The issue I am having is that I don't know how to calculate the translate3d value, I am guessing I need to work out how long the entire text thread is and input that value, I'm currently using 300vw which seems about right. But then of course at the end of the animation, which is infinite, it starts again and just jumps back. Is there a way to actually infinitely loop text that won't be adversely affected if the client changes the content of the text banner, or something that doesn't do that nasty jump back to 0%?
Second Issue: The client wanted the image gallery carousels at the top of certain pages to be full bleed, starting from the top of the page (so underneath the header). At the moment I've 'achieved' this look by targeting the gallery container and setting the top value to -5vh or whatever makes it sit correctly roughly at all break points - the problem with that is that as I'm using Squarespace's content blocks, it means I then have a gap between this container and the next container below that I can't narrow, without moving every container on the page up by the same amount, leaving a huge gap between the last container and the footer which isn't ideal. Am i doing this the hard way? Is it because of Squarespace?
I can share my code or a link to the site if that helps, thank you in advance from this noob :)
Posted Sep 19, 2021, 8:39 AM UTC
You could try searching for Extension first before going deep on CSS BTW. Usually, messing with CSS / html / scripts on CMS will gave you huge headache in the future. If you go with less-programming method, might as well try if there's solution with less-programming.
True! I’ll have a look, thank you :)