User:BigCoight/common.css: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
mNo edit summary
imported>BigCoight
mNo edit summary
Line 6: Line 6:


.img__description {
.img__description {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
   background: rgba(29, 106, 154, 0.72);
   background: rgba(29, 106, 154, 0.72);
   color: #fff;
   color: #fff;

Revision as of 07:42, 9 February 2021

.img__wrap {
  position: relative;
  width:72px;
  height:72px;
}

.img__description {
  background: rgba(29, 106, 154, 0.72);
  color: #fff;
  visibility: hidden;
  opacity: 0;

  /* transition effect. not necessary */
  transition: opacity .2s, visibility .2s;
}

.img__wrap:hover {
	transform: scale(1.2);
    transition: 0.2s ease-out;
}

.img__wrap:hover .img__description {
  visibility: visible;
  opacity: 1;
}