运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <style> #div1 { font-size:48px; } </style> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <body> <div id="div1" class="fa"></div> <script> function hourglass() { var a; a = document.getElementById("div1"); a.innerHTML = ""; setTimeout(function () { a.innerHTML = ""; }, 1000); setTimeout(function () { a.innerHTML = ""; }, 2000); } hourglass(); setInterval(hourglass, 3000); </script> <p>This example demonstrates how to use an icon library to make an animated effect.</p> </body> </html>