Answer the question
In order to leave comments, you need to log in
Transition in firefox (background-image)?
The code:
.item{
display: inline-block;
vertical-align: top;
height: 17px;
margin-right: 2px;
transition: all 0.2s
}
.item.vk{
width: 30px;
background: url('data:image/png;base64,...') no-repeat center}
.item.twit{
width: 23px;
background: url('data:image/png;base64,...') no-repeat center}
.item.ok{
width: 19px;
background: url('data:image/png;base64,...') no-repeat center}
.item.insta{
width: 18px;
background: url('data:image/png;base64,...') no-repeat center}
.item.vk:hover{background: url('data:image/png;base64,...') no-repeat center}
.item.twit:hover{background: url('data:image/png;base64,...') no-repeat center}
.item.ok:hover{background: url('data:image/png;base64,...') no-repeat center}
.item.insta:hover{background: url('data:image/png;base64,...) no-repeat center}
footer .footer-social-item{
display: inline-block;
vertical-align: top;
height: 19px;
margin-right: 2px;
transition: all 0.30s linear 0s;
background-repeat: no-repeat;
background-position: 0 0;
}
footer .footer-social-item.vk{
width: 30px;
background-image: url('data:image/png;base64,...')}
footer .footer-social-item.twit{
width: 23px;
background-image: url('data:image/png;base64,...')}
footer .footer-social-item.ok{
width: 19px;
background-image: url('data:image/png;base64,...')}
footer .footer-social-item.insta{
width: 18px;
background-image: url('data:image/png;base64,...')}
footer .footer-social-item:hover{background-position: 0 -19px}
Answer the question
In order to leave comments, you need to log in
transition: all 0.2s
no animation set, should betransition: all 0.2s ease
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question