Jump to content

CSS Showing on header in mobile view

Recommended Posts

Site URL: https://www.michellemilwardphotography.ca/

I just built my site and it's pending transfer from 7.0.

Everything looks great accept when it refreshes from time to time and on mobile view - CSS is showing at the header but only on the home page.

HOME PAGE CODE

.Index-page:first-child .sqs-layout, .Intro .sqs-row {
-webkit-animation: fade-text-anim 2s ease;
animation: fade-text-anim 2s ease;
}
@keyframes fade-text-anim {
0% {
opacity: 0;
-webkit-transform: translate3d(0,30px,0);
-moz-transform: translate3d(0,30px,0);
-ms-transform: translate3d(0,30px,0);
-o-transform: translate3d(0,30px,0);
transform: translate3d(0,30px,0);
}
25% {
opacity: 0;
-webkit-transform: translate3d(0,30px,0);
-moz-transform: translate3d(0,30px,0);
-ms-transform: translate3d(0,30px,0);
-o-transform: translate3d(0,30px,0);
transform: translate3d(0,30px,0);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
}

image.thumb.png.a62f3bfea08cc7b41bb3ade1fcf3a4b0.png

Link to comment
  • Replies 3
  • Views 507
  • Created
  • Last Reply
47 minutes ago, MMilward said:

Site URL: https://www.michellemilwardphotography.ca/

I just built my site and it's pending transfer from 7.0.

Everything looks great accept when it refreshes from time to time and on mobile view - CSS is showing at the header but only on the home page.

HOME PAGE CODE

.Index-page:first-child .sqs-layout, .Intro .sqs-row {
-webkit-animation: fade-text-anim 2s ease;
animation: fade-text-anim 2s ease;
}
@keyframes fade-text-anim {
0% {
opacity: 0;
-webkit-transform: translate3d(0,30px,0);
-moz-transform: translate3d(0,30px,0);
-ms-transform: translate3d(0,30px,0);
-o-transform: translate3d(0,30px,0);
transform: translate3d(0,30px,0);
}
25% {
opacity: 0;
-webkit-transform: translate3d(0,30px,0);
-moz-transform: translate3d(0,30px,0);
-ms-transform: translate3d(0,30px,0);
-o-transform: translate3d(0,30px,0);
transform: translate3d(0,30px,0);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
}

image.thumb.png.a62f3bfea08cc7b41bb3ade1fcf3a4b0.png

I guess you place this code in code injection section, try to wrap the text within 

<style>  and </style> to make it a valid stylesheet

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.