- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am transitioning the :before pseudo-element of a block element (link in this case). When I do so, I see adjacent links’ text flicker a bit. On my actual site, I see the adjacent links shift to the left/right a tad during transition… but I can’t get that to happen on this test-case.
This only happens to me in Chrome. Safari and FF renders everything just fine.
I have made two pens to show this issue.
The first one show it happening. The reason I’m using a :before pseudo-element is to allow for the background to be skewed without the text inside to be affected.
The :before pen
This is one using a simple transition on the background of the element, not skewed just a simple box. As you can see, it (and the adjacent links) transition just fine. No weird flicker.
No-flicker pen
So… I assume this is a bug in Chrome, or something I’m doing in CSS that is painfully obvious that I’m not seeing :(
(Also, in chrome the first pen flickers entirely when I move from link to link. Not sure why)
Any help would be awesome possum!!!
Hi,
Try adding -webkit-backface-visibility:hidden; to the before rule and it should stop the flicker.
Fixed! Not sure why tho, so I’ll head over to Google and see what’s up.