Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove hover animation

please go to below link and click story,

http://premio-e.de/

when I mouse over,

http://awesomescreenshot.com/03b435w09

it's animating on hover.

how do i remove this. I am using below css for this,

.storypageThumb1 {
    float:left;
    width:175px;
    height:91px;
    text-indent: -9999px;
    background:url(../images/storyPage-thumb01_new.png) no-repeat;
    text-transform: uppercase;
}

.storypageThumb1:hover {
    background-position:0 -91px;
}

it's suppose to just change the possition. not animating.

like image 702
S.S.Niranga Avatar asked Aug 05 '26 01:08

S.S.Niranga


2 Answers

You have set all your anchors to animate on all CSS changes with the following code:

a { -webkit-transition: all 0.3s ease; }

You can override this at your storeypageThumb1:

.storypageThumb1 {
    -webkit-transition: none;
    ...
}
like image 172
David Hedlund Avatar answered Aug 06 '26 14:08

David Hedlund


In firebug I noticed that all your a tags have a transition associated:

-moz-transition: all 0.3s ease 0s;

That's why it is animating. You have to remove the transition from that element, like:

.storypageThumb1 { 
    transition:none; 
    -moz-transition:none; 
    -o-transition:none; 
    -webkit-transition:none; 
}
like image 27
Cthulhu Avatar answered Aug 06 '26 15:08

Cthulhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!