0

I am working on a site and have successfully converted it from html4.0 to html5 with responsive CSS.

But at last, in am facing a problem. The original site has an image in the footer that shows 50% on y-axis and shows rest hiding it when you hover on it. Live example -> bsonspec.org

The image is in the folder assets/cc.png is below in source code on https://github.com/Rohitkumary/bsonspec

Thanks in advance.

Rohit kumar
  • 101
  • 2

2 Answers2

2

Add transition property to 'a.ro'

a.ro { 
    background-repeat: no-repeat;
    background-position: 0 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 150px;
    height: 70px;
    transition: all 0.2s ease-in-out; // add this line
}
Vivekraj K R
  • 2,418
  • 2
  • 19
  • 38
0

Add to a.ro

-webkit-transition: background-image 0.2s ease-in-out; //or linear
transition: background-image 0.2s ease-in-out;

Possible duplicate of: CSS3 background image transition

Community
  • 1
  • 1