0
任何人都可以帮我解决如何摆脱css抖动?摆脱动画的css抖动
HTML浏览:
<div class="carousel-inner">
<div class="item">
</div>
</div>
此处的CSS:
.carousel-inner {
position: relative;
overflow: hidden;
width: 100%;
height: 100vh;
}
.item {
background-image: url(https://images.unsplash.com/photo-1462834026679-7c03bf571a67?dpr=1&auto=format&fit=crop&w=1500&h=989&q=80&cs=tinysrgb&crop=);
background-position: right bottom;
background-size: 100% 100%;
animation: wdszoom0 5s linear 0s infinite alternate;
position: absolute;
height: 100%;
width: 100%;
display: block;
top: 0;
bottom: 0;
overflow-x: hidden;
}
@-webkit-keyframes wdszoom0 { 100% { background-size: 120% 120%; }}
小提琴这里: https://jsfiddle.net/kybernaut/zkzod6wh/2/
我看过这个那个,但没有帮助我:
非常感谢,我还没有考虑过将它作为一个转换;) –
但是如果我只想将其应用于项目的背景而不是整个内容呢? –
然后,您可能想要考虑制作一个可以制作动画的包装器,并将内容保留为... :) –