2番目の画像、3番目の画像などにズームアウトして画像を切り替えたいと思っています。背景画像とスケールを使用して、いくつかのキーフレームを使って自分で作成してみましたが、2つの問題があったことを除いて、ちゃんと機能しました。1.テキストとボタンもスケーリングされました。2.画像の持続時間が短すぎました。含めますが、探していたものではなかったので削除しました。これが純粋なCSSで実行できる方法があるかどうかは、少なくとも簡単にはわかりません。だから私はJSを使用する必要があるだろうことに傾いていますか?これが私の現在のコードです。
.jumbo {
display: flex;
flex-direction: column;
justify-content: Center;
margin: 0;
width: 100vw;
height: 100vh;
min-height:100vh;
background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3)),
url("images/j-img1.png");
background-repeat:no-repeat;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.jumbo-text {
text-align: center;
color: white;
font-weight: 600;
}
/* Jumbo button */
.vmore-button {
text-align: center;
border: 2px solid white;
text-transform: uppercase;
padding: 16px;
align-self: Center;
margin: 20px;
border-radius: 5px;
font-weight: 600;
font-size: 24px;
transition: 0.5s ease;
color: white;
max-height: 70px;
cursor:pointer;
}
<div class="jumbo">
<h2 class="jumbo-text">
Welcome to LLG
</h2>
<h3 class="jumbo-text animated slideInLeft delay-1s" style="color:#e8e8e8; font-weight:500;">
Memorable Gaming Experience, High Quality Servers.
</h3>
<a class="vmore-button hvr-icon-pulse-shrink" href="#viewmore">View more<br><i class="fas fa-arrow-circle-down hvr-icon"></i></a>
</div>
あなたが試みたコードを提供した方が良かったと思います、私はあなたが話していることを見ることができません...または私の英語は良くないかもしれません
—
Ayman Morsy
アニメーションに関連するコードがないこの不明確な質問の+8について
—
知りたい