0
こちらの手順は次のとおりです。https://davidwalsh.name/background-animation-cssブートストラップの反応的なアニメーション背景?
私は画像を動かすことができますが、どのように反応させるかを理解できません。どのようにこれを可能にするためのアイデア?私は次のCSSコードを追加しました:デモの中で
@keyframes animatedBackground{
from {background-position: 0 0;}
to {background-position: -1920px 0;}
}
#animate-area{
width: 560px;
height: 400px;
background-image: url("images/japan.jpg");
background-position: 0px 0px;
background-repeat: repeat-x;
animation: animatedBackground 40s linear infinite;
}
コードのスニペットを投稿できますか? – Pranjal
あなたの説明の中にURLがあると、このような良い例が得られます。デモに従ってください。デモとコードを比較してください。 – webtuts4u
あなたのdivを反応させるだけです。背景はそれに従って設定されます。 –