Lecture 12 (Morning)

 


Index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/Style.css">
</head>

<body>
    <div class="rec">
       
        <div class="rec-center"></div>
    </div>
</body>
</html>



Style.css

.rec {
  height: 350px;
  width: 350px;
  background-color: black;
  margin: auto;
}

.rec-center {
  height: 250px;
  width: 250px;
  position: relative;
  top: 50px;

  left: 50px;
  background-color: blue;
}

.rec-center:hover {
  border-radius: 50%;
  /* background-color: yellow; */
  background-size: cover;
  background-position: center;
  background-image: url("../images/background.jpg");
  transform: rotate(360deg);

  transition: 3s;
}



Comments