0

I couldn't get transitions to that div , i do not know why , i tried many times without any success

.desc-mov {
  background-color: #eee;
  font-size: 11px;
  color: black;
  height: 130px;
  width: 100%;
  opacity: 0.6;
  line-height: 1.5;
  transition: 5s;

  position: absolute;
}

.desc-mov:hover {
  bottom: 0px;
}
    <div class="desc-mov ">
    <p > how are you are that working</p>               

               </div>

1 Answers1

0

You need to have a default value for an absolute position in order to make it work. Try this:

.desc-mov {
  background-color: #eee;
  font-size: 11px;
  color: black;
  height: 130px;
  width: 100%;
  opacity: 0.6;
  line-height: 1.5;
  transition: 5s;
  top: 0;
  position: absolute;
}

.desc-mov:hover {
  top: 100%;
}
 <div class="desc-mov ">
    <p > how are you are that working</p>               
</div>
Cata John
  • 1,371
  • 11
  • 19