0
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?

cssを用いて、文字をゆっくり浮かび上がらせる

Last updated at Posted at 2025-03-13

文字がゆっくりと浮かび上がってくるcss

作成例
文字浮かび上がり.gif

以下コード

app/assets/任意のcss

p
{
 animation-name: textanime;/*keyname*/
 animation-duration:10s;/*最大再生時間*/
 animation-fill-mode: forwards;/*表示を固定*/
 #追加したい色や余白があれば以下から}までの中に追加
}

@keyframes textanime
{
 0%{
  opacity: 0;/* 最初は透明 */
 }

 100%{
  opacity: 1;/* 最後は完全に表示 */
 }
}

pは各々対応させたいタグに変更して使用してください。

0
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
0
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?