square animation

by Julien Roche

HTML

<body>
  <div class="square"></div>
</body>

CSS

html,
body {
  border: none;
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.square {
  border: 2px solid black;
  border-radius: 1rem;
  height: 5rem;
  width: 5rem;
  transform: rotate(45deg);
}