im using the following code to implement ticker tape scrolling on top of my website, but when it ends it does not start over. I want it to be continuous not to have a blank space on the scrolling. Trying to figure it out on js but can't find where to change it... thank you very much!
<!-- TradingView Widget BEGIN -->
<style>
body {
margin: 0;
}
.content {
padding: 10px 20px;
}
.content p {
font-family: sans-serif;
}
/******/
.ticker-container {
width: 100%;
overflow: hidden;
}
.ticker-canvas {
width: calc((200px * 15) + 2px);
/*
200px = minimum width of ticker item before widget script starts removing ticker codes
15 = number of ticker codes
2px = accounts for 1px external border
*/
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-name: ticker-canvas;
animation-name: ticker-canvas;
-webkit-animation-duration: 20s;
animation-duration: 20s;
}
.ticker-canvas:hover {
animation-play-state: paused
}
@-webkit-keyframes ticker-canvas {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible;
}
100% {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
@keyframes ticker-canvas {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible;
}
100% {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
.tradingview-widget-container {
position: relative;
}
.tradingview-widget-container iframe {
position: absolute;
top: 0;
}
.tradingview-widget-container iframe:nth-of-type(2) {
left: 100%;
}
</style>
<script>
$( document ).ready(function() {
$( ".tradingview-widget-container iframe" ).clone().appendTo( ".tradingview-widget-container" );
});
</script>
<div class="ticker-container">
<div class="ticker-canvas">
<div class="tradingview-widget-container">
<div class="tradingview-widget-container__widget"></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-tickers.js">
{
"symbols": [
{
"description": "IBOV",
"proName": "INDEX:IBOV"
},
{
"description": "Euro",
"proName": "FX_IDC:BRLEUR"
},
{
"description": "Dólar",
"proName": "FX_IDC:BRLUSD"
},
{
"description": "Libra",
"proName": "FX_IDC:BRLGBP"
},
{
"description": "Yuan",
"proName": "FX_IDC:BRLCNY"
},
{
"description": "Petróleo",
"proName": "ECONOMICS:BRCOP"
},
{
"description": "S&P",
"proName": "SP:SPX"
},
{
"description": "Nasdaq",
"proName": "SKILLING:NASDAQ"
},
{
"description": "Ouro (250g)",
"proName": "BMFBOVESPA:OZ1"
},
{
"description": "Inflação",
"proName": "ECONOMICS:BRIRYY"
},
{
"description": "Ibovespa",
"proName": "INDEX:IBOV"
},
{
"description": "Bovespa Index Mini Futures",
"proName": "BMFBOVESPA:WIN1!"
},
{
"description": "Bovespa Index Futures",
"proName": "BMFBOVESPA:IND1!"
},
{
"description": "S&P Index Futures",
"proName": "BMFBOVESPA:ISP1!"
},
{
"description": "Bitcoin",
"proName": "CRYPTOCAP:BTC"
}
],
"colorTheme": "dark",
"isTransparent": false,
"showSymbolLogo": true,
"locale": "br"
}
</script>
</div>
</div>
</div>
<!-- TradingView Widget END -->
Want to make it scroll continuously, tryed to change the code and js.
I hope this will help you, change content accordingly