Skip to content Skip to sidebar Skip to footer

Css Scale Transition Ease-out Not Working

So I've been wanting to do this scale transition on an icon on a blog. And the ease-in is working properly but not the ease-out... I read some stuff but none of them are about the

Solution 1:

Updated the snippet to include

#avatarimg {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

To make the ease-out transition effective.

#avatar {
  margin: auto;
  margin-top: 15px;
  width: 50px;
  height: 50px;
  border-radius: 60px;
  border:0px solid {
    color: Main icon background
  }
  ;
  z-index:10;
}

#avatarimg {
  width: 100%;
  height: 100%;
  border-radius: 100%;
}

#avatarimg:hover {
  -webkit-transition: all 0.7s ease-in;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
  -ms-transform: scale(1.5, 1.5);
  /* IE 9 */
  -webkit-transform: scale(1.5, 1.5);
  /* Safari */transform: scale(1.5, 1.5);
}

#avatarimg {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
<divid="avatar"><imgsrc="https://us.123rf.com/450wm/valentint/valentint1503/valentint150302008/37824182-examples-icon-internet-button-on-colored-background.jpg?ver=6"></div>

Post a Comment for "Css Scale Transition Ease-out Not Working"