Tuesday, December 28, 2021

Fading Button-"Fade in Effect "

 Fading Button-"Fade in Effect "

 


<!DOCTYPE html>

<html>


<head>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="STYLESHEET" type="text/css" href="web.css">

    <title>web design</title>

</head>


<body>

<h1>Fading -"fad in Effect"</h1>

<button class="btn">Hover Over me</button>

</body>


</html>


CSS Fading Button-"Fade in Effect "Style

 .btn{

  background-color: #ddd;

  border: none;

  color: #000;

  padding:16px 32px;

  text-align: center;

  font-size:16px;

  margin:4px 0;

  transition:0.3s;

}

.btn:hover{

  background-color:#3e8e41;

  color: #fff;

}



No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...