を変更したときに動き続ける:http://shiz.co/とhttp://www.maison-vignaux.com/workCSS3アニメーション画像はdiv要素の幅は、私のようなサイトを模倣しようとしている
画像は表示方法、彼らは動いていないようなものだが、それよりは示しますある間隔で。私はこのタイプのアニメーションが欲しいです。今、私のイメージは、上記のサイトのように多くのイメージを表示するのではなく、動きます。
これを達成する方法はわかりません。 https://jsfiddle.net/z7ukk6kb/(アニメーションの名前を無視する)
EDIT:
は、ここに私のバイオリンだ問題は、DIVの背景の位置でした。今、私は欲しいものをやります。
<div class="parallax-elem">
<div class="img"></div>
</div>
$('.img').addClass('slide-top');
私のCSSは:
.slide-top {
-webkit-animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
@keyframes slide-top {
0% {
width:0;
}
100% {
width:100%;
}
}
.parallax-elem {
overflow:hidden;
position: absolute;
height:600px;
width:100%;
}
.parallax-elem:after {
content:"";
background-color:#eee;
width:100%;
height:100%;
top:0;
left:0;
right:0;
position: absolute;
z-index:10;
}
.img {
background:url('http://media.nj.com/entertainment_impact_dining/photo/coffee-stock-photo-0e8b300f42157b6f.jpg') no-repeat;
background-size: cover;
background-position: center center;
position: relative;
height: 100%;
z-index:11;
width: 100%;
}
問題が何でありますか? – birdspider
どうすればいいですか? downvoteありがとう。私はただ勉強しようとしています。私は自分のコードとそれが行っている現在のアニメーションを提供しました。 – corporalpoon
[mcve](https://stackoverflow.com/help/mcve) - 特に「問題を説明する」を参照してください。動作しません。「問題の声明ではありません。 – birdspider