Jump to content

Question

Posted

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

[url="http://www.imagraphicdesigner.com/roma/html5/"]http://www.imagraphicdesigner.com/roma/html5/[/url]

[CODE]
<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]

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.