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

Custom CSS messing up all other site elements

Question

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

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

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 👋🏽';
  }
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...