2
1

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.

Tailwind CSSを使ってかわいく文字をグラデーションさせながら跳ねさせる

Last updated at Posted at 2023-07-12

はじめに

おそらくかなり需要しかない記事。みんなロード画面とか作ってる時に文字をグラデーションさせながら跳ねさせたくなるよね。つくってみたよ。

Code

<div className="absolute inset-0 flex flex-col items-center justify-center bg-gray-50 py-12">
      <div className="animate-bounce">
          <h1 className="background-animate font-extrabold text-8xl bg-clip-text bg-gradient-to-r from-indigo-500 via-sky-500 to-emerald-500 text-transparent text-center p-5 mb-4 leading-none text-gray-900">
                Loading...
          </h1>
      </div>
</div>

イメージ

もうちょっとぬるぬるだから、試してみてね
画面収録-2023-07-12-15.45.01.gif
おわり

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?