• 0

blink when color change in link button


Question

When I rollover the VIEW NEWSSTAND is blink for a MSecond and the color change. Any reason Why it's doing that?

http://www.imagraphicdesigner.com/roma/html5/


<div class="index-blog-button"><a href="" title="Newsstand">View Newsstand</a></div>


.index-blog-button {
position:relative;
text-align:center;
top:320px;
}

.index-blog-button a {
font-family:Bold, Arial, Helvetica, sans-serif;
font-size:14px;
text-decoration:none;
color:white;
padding:8px 20px;

transition: background-color .2s ease-out;
background-clip: padding-box; /* Fix bleeding */
border-radius: 4px;
-moz-border-radius: 6px;

-webkit-transition: background 100ms ease-in;
-moz-transition: background 100ms ease-in;
-ms-transition: background 100ms ease-in;
-o-transition: background 100ms ease-in;
transition: background 100ms ease-in;

box-shadow: 0 1px 0 rgba(0, 0, 0, .3),
0 2px 2px -1px rgba(0, 0, 0, .5),
0 1px 0 rgba(255, 255, 255, .3) inset;

background-color: #bc282e; /* Old browsers */
background: -moz-linear-gradient(top, #bc282e 0%, #85171a 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bc282e), color-stop(100%,#85171a)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #bc282e 0%,#85171a 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #bc282e 0%,#85171a 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #bc282e 0%,#85171a 100%); /* IE10+ */
background: linear-gradient(to bottom, #bc282e 0%,#85171a 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bc282e', endColorstr='#85171a',GradientType=0 ); /* IE6-9 */
}

.index-blog-button a:hover {
background: #AF030F;
}

.index-blog-button a:active {
background: #960311;
position: relative;
top: 1px;
text-shadow: none;
box-shadow: 0 2px 2px rgba(0, 0, 0, .5) inset;
}


[/CODE]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I tested and did not experience any blinking however you cannot transition gradients. If you want some kind of hover transition on that button I suggest you do some overlay gradient using background-image, then change the background-color rather than just background.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.