Text cycle

This commit is contained in:
Thomas Smith 2022-09-14 22:03:49 -04:00
parent b6454d4230
commit cdc333eeeb
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@
<div class="container">
<div class="row">
<div class="col">
<h2 class="black text-center" style="z-index:2;">equitable open-source<br>for web3</h2>
<h2 class="black text-center" style="z-index:2;">equitable open-source<br>for <span class="cycle">web3</span></h2>
</div>
</div>
<div class="row">

View file

@ -3,7 +3,7 @@
<hr>
<div class="row" style="margin: 75px 0px;">
<div class="col-lg-8 footer-content">
<h4>Equitable Open-Source for Web3</h4>
<h4>Equitable open-source for <span id="cycle">web3</span></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<img src="/Images/footer-grid-element.svg" alt="tea.grid">
</div>
@ -21,7 +21,7 @@
</div>
</div>
<div class="row mb-4">
<h4>Subscribe to our email list</h4>
<h4>subscribe to our email list</h4>
<hr>
<div class="col">
<div class="input-group">
@ -132,7 +132,7 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
"everything",
"<i>you<i>"
];
const cycle = document.querySelector("#cycle");
const cycle = document.querySelector(".cycle","#cycle");
let i = 0;
const cycleText = () => {
cycle.innerHTML = textList[i];