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

Custom CSS messing up all other site elements


jackiek

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

Link to post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

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 detail answer. / How to Setup Password & Share URL 

-- I came back. Will answer soon.

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