1
我試圖通過在頂部顯示標題而不衰減來實現幻燈片顯示。 我無法做that.Can有人幫助我在改變代碼,以便幻燈片標題無法添加幻燈片而不隱藏標題
這裏開始下的是鏈接到我的codepen
https://codepen.io/arunkayathi/pen/EbxpEv
#landing-header {
background-repeat: no-repeat;
background-size:100%;
z-index: 1;
position: relative;
width:340px;
height:174px;
text-align: center;
margin:0 auto;
padding-top: 37vh;
}
#landing-content{
padding:40px 0;
}
#landing-header{
color:white;
}
.slideshow {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 0;
list-style: none;
margin: 0;
padding: 0;
}
.slideshow li {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
opacity: 0;
z-index: 0;
animation: imageAnimation 50s linear infinite;
}
請點擊鏈接並找到它的全部代碼
如果我沒有記錯的話,你想在最頂部的標題/導航在任何時候都保持可見,但它目前正與滑動變化淡入淡出? – Chris
是的,這是正確的克里斯 – arun