0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CSSだけで簡易的なくるくる回転するローディングアニメーション

Posted at

HTMLとCSSだけでくるくる回転するアニメーションを超簡易的に実装する方法です。なにかをローディング中にごまかすためのよくある表示です。テキスト数行だけでの実装です。

See the Pen Untitled by suzuki-navi (@suzuki-navi) on CodePen.

<span class="progress-circular">|</span>
.progress-circular {
  display: inline-block; /* これがないと回転してくれない */
  animation: rotate-z 2s linear infinite; /* 2秒で1回転 */
}
@keyframes rotate-z {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}

Vuetifyの v-progress-circular みたいなのが使えればいいのですが、そうは行かない場合にどうぞ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?