Github: https://github.com/nzbin/three-dots
$ npm install three-dots –save
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link href="/node_modules/three-dots/dist/three-dots.css" rel="stylesheet"> <style> .spinner { margin: 50px; } </style> </head> <body> <div class="spinner"> <div class="dot-elastic"></div> </div> </body> </html>
なるほど、CSSで表現できるのね。処理に時間がかかる時に使えそうですな。