第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

創(chuàng)建一個帶有循環(huán)的模擬終端來延遲 CSS 動畫

創(chuàng)建一個帶有循環(huán)的模擬終端來延遲 CSS 動畫

蝴蝶不菲 2024-01-11 17:30:43
我正在嘗試創(chuàng)建一個帶有模擬終端的網(wǎng)站,該終端具有逐行鍵入的外觀。我發(fā)現(xiàn)了一種一次顯示一個字符的 CSS 動畫,但我遇到了延遲每一行動畫以使它們不會同時出現(xiàn)的問題。這是我的代碼://attempted javascript loop // var code_lines =document.getElementsByClassName("line");// for (i=0; i<=5; i++){//   code_lines:nth-child(i).style.animation = "typing 2.5s steps(30, end)";// }//attemped jquery loop //$('#terminal_text').children('line').each(function () {//    for (i=0; i<=5; i++){//  i.style.animation = "typing 2.5s steps(30, end)";//}//});.terminal {   width: 500px;   height: 500px;  background-color: black;   color: white;  padding: 20px;}.line {   white-space: nowrap;    overflow: hidden;    transform: translateY(-50%);    animation: typing 2.5s steps(30, end);}/* The typing effect */@keyframes typing {  from { width: 0 }  to { width: 100% }}<div class="terminal"> <div id="terminal_text">    <p class="line"> Last login:  </p>    <p class="line">megan-byers:~ designelixir$ git clone https://github.com/coloradical/Rae_Portfolio.git </p>    <p class="line">Cloning into 'Rae_Portfolio"...</p>    <p class="line">remote: Loading website illustrations: 172 objects, done.</p>    <p class="line">remote: Counting objects: 100% (172/172) done.</p>  </div></div>我將調(diào)整時間,但現(xiàn)在我只想讓動畫一個接一個地開始。我很難找到如何使用班級兒童應(yīng)用動畫的清晰示例。任何指導(dǎo)將不勝感激!代碼筆: https: //codepen.io/coloradical/pen/gOaMzjm
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關(guān)注
  • 158 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號