如果我有一个动画元素后跟另一个非动画元素,Chrome中会出现条带效果和各种颜色转移错误.很难看,但我录制了一个视频(如果放大页面,颜色会发生变化,更容易看到):
https://d26dzxoao6i3hh.cloudfront.net/items/1w1k2e3v0g04142U2A3H/Screen%20Recording%202017-10-30%20at%2011.35%20PM.mov
header { height: 100vh; display: flex; align-items: center; justify-content: center; background: #263238; } header a { animation: scroll-down-anim 1s infinite; } @keyframes scroll-down-anim { 0% { transform: translateY(0); } 100% { transform: translateY(10px); } }
<header> <a href="#">Animated element</a> </header> <p>if i remove this,the glitch disappears</p>