Home › Forums › CSS › [Solved] CSS/Jquery FadeIn/Out Help! › Reply To: [Solved] CSS/Jquery FadeIn/Out Help!
September 22, 2014 at 11:36 am
#184137
Participant
my code:
html5:
<div id="home-text"></div>
Css:
#home-text {
margin: 0 auto;
background: url(images/home-text6.png) no-repeat;
background-size: contain;
height: 150px;
width: 700px;
transition: background 0.7s ease-in-out;
-webkit-transition:background 0.7s ease-in-out;
-o-transtion:background 0.7s ease-in-out;
-moz-transition:background 0.7s ease-in-out;
}
#home-text:hover{
height: 150px;
width: 700px;
background: url(images/home-text6-hover1.png) no-repeat;
cursor: pointer;
background-size: contain;
margin: 0 auto;
}