Answers for "VERTICAL NEWS TICKER"

0

VERTICAL NEWS TICKER

/* (A) STANDARD ROW HEIGHT */
.vwrap, .vitem {
  height: 30px;
  line-height: 30px;
}
 
/* (B) FIXED WRAPPER */
.vwrap {
  overflow: hidden; /* HIDE SCROLL BAR */
  background: #eee;
}
/* (C) TICKER ITEMS */
.vitem { text-align: center; }
 
/* (D) ANIMATION - MOVE ITEMS FROM TOP TO BOTTOM */
/* CHANGE KEYFRAMES IF YOU ADD/REMOVE ITEMS */
.vmove { position: relative; }
@keyframes tickerv {
  0% { bottom: 0; } /* FIRST ITEM */
  30% { bottom: 30px; } /* SECOND ITEM */
  60% { bottom: 60px; } /* THIRD ITEM */
  90% { bottom: 90px; } /* FORTH ITEM */
  100% { bottom: 0; } /* BACK TO FIRST */
}
.vmove {
  animation-name: tickerv;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(1, 0, .5, 0);
}
.vmove:hover { animation-play-state: paused; }
Posted by: Guest on September-20-2021
0

VERTICAL NEWS TICKER

<div class="vwrap"><div class="vmove">
  <div class="vitem">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
  <div class="vitem">Aliquam consequat varius consequat.</div>
  <div class="vitem">Fusce dapibus turpis vel nisi malesuada sollicitudin.</div>
  <div class="vitem">Pellentesque auctor molestie orci ut blandit.</div>
</div></div>
Posted by: Guest on September-20-2021

Browse Popular Code Answers by Language