用途
新着
履歴
分類

CSS3 震える表現

CSS3 震える表現

画像や文字がアニメーションすると、どうしても見てしまいます。

縦と横それぞれに揺らす表現は以前紹介しました。

縦と横の動きを混ぜることで、シャッフルするような表現ができます。

震える演出
背景あり

classを指定して、CSSのみのアニメーションです。

.demo_div{
	width: 100px;
	height:100px;
	animation: furu 2.2s infinite;
	background-color:#559;
	color:#FFF;
	text-align:center;
	line-height:100px;
}
@keyframes furu {
    0% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
    2% {
        transform: translate(2px, 2px) rotateZ(2deg)
    }
    4% {
        transform: translate(0px, 2px) rotateZ(0deg)
    }
    6% {
        transform: translate(2px, 0px) rotateZ(-2deg)
    }
    8% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
    10% {
        transform: translate(2px, 2px) rotateZ(2deg)
    }
    12% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
    14% {
        transform: translate(2px, 0px) rotateZ(-2deg)
    }
    16% {
        transform: translate(0px, 2px) rotateZ(0deg)
    }
    18% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
    100% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
}
公開 2019-07-29 05:10:08
更新 2022-01-31 01:46:09
このページの二次元コード
CSS3 震える表現

人気のサンプル

search -  category -  about
© 2024 kipure
Top