Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Animated Splash Screen in Squarespace Plays on Every Page - Need only cover/intro page


nwatkins

Question

Site URL: https://www.nickwatkinsdesign.com/

Hi!

I'm trying to add/change my code that I have in site so that the opening "HI" animation only plays once you enter the site and then it goes away for the rest of the time you go throughout the site. Please help me 🙂 Url: https://www.nickwatkinsdesign.com/

Also, I was wondering what/how the best way to optimize a website for both desktop and mobile would be? Lemme know! Thank you, thank you in advance!

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

First off, really cool text at the start!

Secondly, one way would be to use javascript to set a cookie, which might be a bit of a pain.

An easier solution would be to only apply the code you've used to your home page, as honestly, that'll be where they're going first.

Lastly, optimising for both is case by case but generally as a rule of thumb:

  • compress your images
  • make sure they have alt-text
  • check for any junk/unecessary code
  • test on a number of devices and have your styling mobile-first (i.e. desktop not media queries) if you're mobile focused
  • ensure that you've designed for both - i.e. don't just rely on Squarespace to "convert" for mobile

Specialising in Squarespace CSS and customisation. Always open to collaborate on projects with fellow Squarespacers!

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me by buying me a coffee.

Squarespace Tips & Tricks: SquareSkills.dev (resource & tutorial site coming soon)

Design, Development & Branding: KwameAnd.co (new portfolio site coming soon)

Link to comment
  • 0

Yes. 

However, it would look less awkward. To do that, you'd (likely) just need to move whatever code is in your code injection to run it currently into the code injection for the homepage:

Click the cog on the page > advanced > page header injection

And that should do the trick.

For the cookie thing, to get it to work only once per session/on first visit, you'd have to figure out if there's GDPR work there, just as a note. If you want help there, to be honest, I haven't seen it done on Squarespace before but it should be possible. I'm pretty booked up right now but if you're looking to hire I can check my availability in the coming weeks?

Specialising in Squarespace CSS and customisation. Always open to collaborate on projects with fellow Squarespacers!

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me by buying me a coffee.

Squarespace Tips & Tricks: SquareSkills.dev (resource & tutorial site coming soon)

Design, Development & Branding: KwameAnd.co (new portfolio site coming soon)

Link to comment

Create an account or sign in to comment

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


×
×
  • Create New...