I've got an icon font blur problem (and element flicker) when there is an element using transform animation
. This seems to be a known bug with the Chrome browser, one mention of it is here: https://forum.webflow.com/t/a-fix-for-when-your-elements-move-up-and-or-blur-during-animations-interactions-on-chrome/11629
Here is a jsfiddle example, open it up in Chrome, and tilt your screen right back so you can see the icon font blur better. https://jsfiddle.net/71t3jjao/3/
Code example:
<head>
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.topbar {
position: fixed;
z-index: 999;
top: 0;
width: 100%;
height: 51px;
border-bottom: 1px solid rgba(0,0,0,0.25);
background: #fff;
}
.glyphicon {
margin: 15px 0 0 20px;
font-size: 12px;
}
.animation {
width: 400px;
height: 200px;
background: #aaa;
transform: translate3d(339px, 0px, 0px);
}
</style>
</head>
<body>
<div class="topbar">
<span class="glyphicon glyphicon glyphicon-film" aria-hidden="true"></span>
<span class="glyphicon glyphicon glyphicon-th" aria-hidden="true"></span>
</div>
<div class="animation"></div>
<br />scroll past animation element to see icons blur<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</body>
(On my site, the icon blur is more noticeable I think because I'm using a different icon set).
You'll see the icon fonts blur on the top navigation element which is a position: fixed; top: 0; width: 100%; z-index: 99999;
element. These icon fonts in the topbar blur when the carousel element is not visible on the screen by scrolling past it.
Any ideas how to fix this icon font blur? I've tried many things like font-smoothing: antialiased;
on the icons but doesn't fix it. My topbar element also needs to stay as it is with a position: fixed
and with a z-index higher than all other elements. Any help much appreciated.