0 points

Translate on hover


dashboard

Mon Nov 09 2020 03:01:47 GMT+0000 (UTC)

Posted by @TheFirstFace #css

a {
  font-size: 2em;
  transition: transform .3s ease-out;
  display: inline-block;
}
a:hover {
  transform: translate(0, -5px);
}
content_copy Copy

https://stackoverflow.com/questions/31860157/css3-transform-translate-on-hover-with-transition