S
S
SharkyFLY2012-03-09 18:09:34
HTML
SharkyFLY, 2012-03-09 18:09:34

Opacity, transition and firefox?

there is an image, when hovering over it, the transparency smoothly changes:

#work img { <br/>
width: 100%; <br/>
opacity: 1.0; <br/>
transition: 0.1s ease-in-out; <br/>
-moz-transition: 0.1s ease-in-out; <br/>
-webkit-transition: 0.1s ease-in-out; <br/>
}<br/>
<br/>
#work article:hover img { <br/>
opacity: 0.3; <br/>
transition: 0.3s ease-in-out; <br/>
-moz-transition: 0.3s ease-in-out; <br/>
-webkit-transition: 0.3s ease-in-out;<br/>
}

the trouble is that firefox shows this change through a black translucent square.
in other browsers everything is fine. corrupts both png and jpg.
%D0%91%D0%B5%D0%B7-%D0%B8%D0%BC%D0%B5%D0
Help me to understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rasa, 2012-03-11
@rasa

Used such code in css
img {
width: 100%;
opacity: 1.0
transition: 0.1s ease-in-out;
-moz-transition: 0.1s ease-in-out;
-webkit-transition: 0.1s ease-in-out;
}
img:hover {
opacity: 0.3;
transition: 0.3s ease-in-out;
-moz-transition: 0.3s ease-in-out;
-webkit-transition: 0.3s ease-in-out;
}
Firefox 10.0.2 release/debian linux - normal flight works correctly, no black square

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question