Jump to content

Custom CSS messing up all other site elements

Recommended Posts

Hey ya'll, I made some light custom CSS to achieve this changing text animation (see attached screenshots). But it seems to have overridden other codes as the changing text animation has been appearing on the homepage, in navigations, and in the settings as well (so weird!). Does anyone know what part of the code can be edited to fix this issue?

Thanks for your time and help in advance! 

Best,

Jackie

 

Code text box:

<div class=“wrapper”>

  <h3><span></span></h3>

</div>

 

Custom CSS editor:

.wrapper{
  position: absolute;
}
span:before{
  content: ''; 
  animation: animate infinite 10s;
}
@keyframes animate{
  0%{
    content: 'Hi 👋🏽';
  }
  20%{
    content: '你好';
  }
  40%{
    content: 'Hola';
  }
  60%{
    content: 'Ciao';
  }
  80%{
    content: 'Hej';
  }
  100%{
    content: 'Hi 👋🏽';
  }
}

 

Screen Shot 2020-09-15 at 9.55.47 AM.png

Screen Shot 2020-09-15 at 9.57.16 AM.png

Screen Shot 2020-09-15 at 9.58.02 AM.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

First, edit first code to this

<div class="tuan">
  <h3><span></span></h3>
</div>

Next, edit to this

.tuan {
  position: absolute;
}
.tuan span:before {
  content: ''; 
  animation: animate infinite 10s;
}
@keyframes animate{
  0%{
    content: 'Hi 👋🏽';
  }
  20%{
    content: '你好';
  }
  40%{
    content: 'Hola';
  }
  60%{
    content: 'Ciao';
  }
  80%{
    content: 'Hej';
  }
  100%{
    content: 'Hi 👋🏽';
  }
}

 

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.