Jump to content

User:4erospace/common.css: Difference between revisions

m CSS test
CSS test
Line 1: Line 1:
.news-wrapper {
/* Core functionality */
   max-width: 100%;
#animated-text-strip{
   display: flex;
  flex-flow: row nowrap;
  align-items: center;
   overflow: hidden;
   overflow: hidden;
}
}
 
#animated-text-strip .marquee {
.news-marquee {
   white-space: nowrap;
   white-space: nowrap;
  overflow: hidden;
  display: inline-block;
   animation: marquee 10s linear infinite;
   animation: marquee 10s linear infinite;
  max-width: none;
}
}


.news-marquee p {
@keyframes marquee {
  display: inline-block;
}
 
@keyframes news-marquee {
   0% {
   0% {
     transform: translate3d(0, 0, 0);
     transform: translate(0, 0);
   }
   }
   100% {
   100% {
     transform: translate3d(-50%, 0, 0);
     transform: translate(-100%, 0);
   }
   }
}
/* Styles for the sake of the demonstration */
#animated-text-strip{
  background:black;
  padding: 1rem 0;
}
.marquee{
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
}
}

Revision as of 05:55, 17 June 2025

/* Core functionality */
#animated-text-strip{
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  overflow: hidden;
}
#animated-text-strip .marquee {
  white-space: nowrap;
  animation: marquee 10s linear infinite;
  max-width: none;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* Styles for the sake of the demonstration */
#animated-text-strip{
  background:black;
  padding: 1rem 0;
}
.marquee{
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
}