

プロパティについて
#
概要
初期値 | “transition-delay: ease;” |
適用対象 | すべての要素 |
継承 | No |
パーセント値 | パーセント値は指定できません |
計算値 | 指定した所要時間をアイテムとするリスト |
アニメーション | 不可 |
“transition-delay”プロパティは“transition-duration”プロパティなどで指定された要素に適用されているプロパティの値が変化した時に遷移が開始するまでの遅延時間を指定するプロパティです。
サンプルコード
div { transition-delay: 5s;}
#
#
複数のプロパティの遷移効果を指定する
“transition-property”プロパティで複数のプロパティの遷移効果が指定されている場合、値を“,(コンマ)”で区切って記述することでそれぞれの遷移を開始するまでの遅延時間を指定することができます。値の順番は“transition-property”プロパティで指定した値の順番に対応します。
div {
transition-duration: 〚1個目のプロパティの所要時間〛,〚2個目のプロパティの所要時間〛,〚3個目のプロパティの所要時間〛,...;
transition-property: 〚1個目のプロパティ〛,〚2個目のプロパティ〛,〚3個目のプロパティ〛,...;
transition-delay: 〚1個目のプロパティの遅延時間〛,〚2個目のプロパティの遅延時間〛,〚3個目のプロパティの遅延時間〛,...;
}
#
使用例
#
遷移効果の遅延時間を指定する
.sample-box:hover {
transform: scale(1.5);
background-color: #e95295;
transition-duration: 3s;
transition-delay: 5s;
}
hover!
.sample-box:hover {
transform: scale(1.5);
background-color: #e95295;
transition-duration: 3s;
transition-delay: 10s;
}
hover!
.sample-box:hover {
transform: scale(1.5);
background-color: #e95295;
transition-duration: 3s;
transition-delay: 0s;
}
hover!
#
#