Fade in on Button hover with CSS

CSSWeb DevelopmentFront End Technology

You can try to run the following code to fade in on button hover with CSS


Live Demo

<!DOCTYPE html>
         .btn {
            background-color: orange;
            color: white;
            padding: 10px;
            text-align: center;
            font-size: 16px;
            margin: 5px;
            opacity: 0.5;
            transition: 0.5s;
            display: inline-block;
            text-decoration: none;
            cursor: pointer;
         .btn:hover {
            opacity: 2
      <button class = "btn">Result</button>
Updated on 24-Jun-2020 08:31:03