Jump to content

Syntax Error in Line 1

Recommended Posts

Site URL: http://arriverailside.com/#arrive

I am trying to add a more animated scroll down arrow on my home page at http://arriverailside.com/#arrive.  I am using different recommendations for inserting custom css on the design page, however I keep getting a syntax error on line 1 message.  I am thinking it may be related to the message that says "Note: Custom CSS does not apply to Cover Pages."   But I am unsure about this.   Any help would be greatly appreciated.  Thanks.  

This is what I am trying to add:

body{
  margin: 0;
  padding: 0;
  background-color: #000;
}
.arrow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.arrow span{
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid #06A8FF;
    border-right: 5px solid #06A8FF;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}
.arrow span:nth-child(2){
    animation-delay: -0.2s;
}
.arrow span:nth-child(3){
    animation-delay: -0.4s;
}
@keyframes animate {
    0%{
        opacity: 0;
        transform: rotate(45deg) translate(-20px,-20px);
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: rotate(45deg) translate(20px,20px);
    }
}

Link to comment
23 minutes ago, twzill said:

Site URL: http://arriverailside.com/#arrive

I am trying to add a more animated scroll down arrow on my home page at http://arriverailside.com/#arrive.  I am using different recommendations for inserting custom css on the design page, however I keep getting a syntax error on line 1 message.  I am thinking it may be related to the message that says "Note: Custom CSS does not apply to Cover Pages."   But I am unsure about this.   Any help would be greatly appreciated.  Thanks.  

This is what I am trying to add:

body{
  margin: 0;
  padding: 0;
  background-color: #000;
}
.arrow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.arrow span{
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid #06A8FF;
    border-right: 5px solid #06A8FF;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}
.arrow span:nth-child(2){
    animation-delay: -0.2s;
}
.arrow span:nth-child(3){
    animation-delay: -0.4s;
}
@keyframes animate {
    0%{
        opacity: 0;
        transform: rotate(45deg) translate(-20px,-20px);
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: rotate(45deg) translate(20px,20px);
    }
}

Cover page not support custom css like it notified

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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
  • 2 weeks later...
On 7/9/2021 at 10:30 PM, twzill said:

Site URL: http://arriverailside.com/#arrive

I am trying to add a more animated scroll down arrow on my home page at http://arriverailside.com/#arrive.  I am using different recommendations for inserting custom css on the design page, however I keep getting a syntax error on line 1 message.  I am thinking it may be related to the message that says "Note: Custom CSS does not apply to Cover Pages."   But I am unsure about this.   Any help would be greatly appreciated.  Thanks.  

This is what I am trying to add:

body{
  margin: 0;
  padding: 0;
  background-color: #000;
}
.arrow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.arrow span{
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid #06A8FF;
    border-right: 5px solid #06A8FF;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}
.arrow span:nth-child(2){
    animation-delay: -0.2s;
}
.arrow span:nth-child(3){
    animation-delay: -0.4s;
}
@keyframes animate {
    0%{
        opacity: 0;
        transform: rotate(45deg) translate(-20px,-20px);
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: rotate(45deg) translate(20px,20px);
    }
}

Hi. Do you want to solve these problems?

Site URL: http://arriverailside.com/

1. (Mobile/Tablet – News) Want to reduce the text size?

http://arriverailside.com/news

arriverailside.com-01-min.png

2. In the browser address bar, it says “Not secure”

arriverailside.com-02-min.png

3. (Mobile – About > The Bid) Logo is too big, do you want resize them and make 2 logos/row

http://arriverailside.com/our

arriverailside.com-03-min.png

4. (Mobile – Calendar) Calendar is cut off

http://arriverailside.com/calendar

arriverailside.com-04-min.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

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.