Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-02-28 10:39:04

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

CSS: blinking background on mouse hover

hi,

NB! this is occurring only with chrome browser!

on burger bar (top left) hover the red background blinking once. can anybody tell, how to get rid off it?

Please, test it.

Offline

#2 2017-02-28 10:54:54

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: CSS: blinking background on mouse hover

Hi

Possibly Unrelated…. You have some html validation error.

<header id="header"class='bg-2'>

should be

<header id="header" class="bg-2">

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2017-02-28 11:11:18

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: CSS: blinking background on mouse hover

colak wrote #304301:

Hi

Possibly Unrelated…. You have some html validation error.

<header id="header"class='bg-2'>...

should be

<header id="header" class="bg-2">...

fixed, thank’s. but yeah, not related

Offline

#4 2017-02-28 12:07:17

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: CSS: blinking background on mouse hover

The issue is caused by the global transition on your a in the CSS file. You need to be more specific in this case as it’s only the opacity you want to transition I assume (it’s currently transitioning the background colour to transparent and back again too, hence the flicker).

Try this:

transition: opacity 0.3s;

Offline

#5 2017-02-28 12:14:06

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: CSS: blinking background on mouse hover

Also (unrelated), maybe use SVG for the burger instead of fudging the HTML/CSS. You can inline it as well to save an additional HTTP request.

For example:

.burger {
    ...
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='%23fff'%3E%3Crect x='4' y='6' width='24' height='4'/%3E%3Crect x='4' y='14' width='24' height='4'/%3E%3Crect x='4' y='22' width='24' height='4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 32px 32px;
    ...
}

Offline

#6 2017-02-28 13:28:56

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: CSS: blinking background on mouse hover

philwareham wrote #304303:

The issue is caused by the global transition on your a in the CSS file. You need to be more specific in this case as it’s only the opacity you want to transition I assume (it’s currently transitioning the background colour to transparent and back again too, hence the flicker).

Try this:

transition: opacity 0.3s;...

added, didn’t help. before i remove a transition for good (which helped), what to try more?
noticed that, background blinking than i hover article title or email anchor as well.

Offline

#7 2017-02-28 16:17:09

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,086
Website Mastodon

Re: CSS: blinking background on mouse hover

unrelated, but it was just a wild guess that led me to find your MENU link. it is pretty well invisible to the user.


…. texted postive

Offline

#8 2017-02-28 23:38:38

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,134
Website

Re: CSS: blinking background on mouse hover

bici wrote #304306:

unrelated, but it was just a wild guess that led me to find your MENU link. it is pretty well invisible to the user.

Yeah. The menu link and the menu (and the red vertical bar on the left) are invisible with Safari 10.

This:

#container { overflow: hidden}

is the cause. I guess that has to be considered a bug nowadays, although I disagree with the conclusions of the CSS-WG on that.

A possible workaround (in case overflow: hidden is absolutely needed for some reason):

#container { 
  /*overflow: hidden*/
  left: 60px; /* <-- add -  */
  margin-left: 0; /* <-- change */
}

As for the flickering, must be bug in the Blink rendering engine. No clue.

Last edited by phiw13 (2017-02-28 23:42:03)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#9 2017-03-01 07:50:53

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: CSS: blinking background on mouse hover

phiw13 wrote #304309:

Yeah. The menu link and the menu (and the red vertical bar on the left) are invisible with Safari 10.
This: #container { overflow: hidden}...
is the cause.
As for the flickering, must be bug in the Blink rendering engine. No clue.

you are absolutely brilliant!! #container { overflow: hidden}... was a “blinker creator”!
thank’s a lot!

ps. how is visibility with safari now?

Offline

#10 2017-03-01 07:55:07

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,134
Website

Re: CSS: blinking background on mouse hover

Gallex wrote #304317:

you are absolutely brilliant!!

:-)))

ps. how is visibility with safari now?

Problem solved, as expected.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#11 2017-03-01 11:16:47

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: CSS: blinking background on mouse hover

phiw13 wrote #304309:

Yeah. The menu link and the menu (and the red vertical bar on the left) are invisible with Safari 10.

installed safari 5.1.7 for windows, and, site’s frontpage is not displayed as expected. :(

is there code inspector for safari as well like other browsers has?

Offline

#12 2017-03-01 11:52:58

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,134
Website

Re: CSS: blinking background on mouse hover

Gallex wrote #304319:

installed safari 5.1.7 for windows, and, site’s frontpage is not displayed as expected. :(

Safari for Window is old and very outdated by now (Apple stopped supporting it years ago, when Chrome became available, IIRC). Do not trust it for anything.

is there code inspector for safari as well like other browsers has?

Of course, but not on that version of Safari I think.

PS – Screenshot of your page with Safari 10.

Last edited by phiw13 (2017-03-01 11:56:55)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB