.box
View Compiled
body {
  background: #CBC2F9;
  display: flex;
  height: 100vh;
}

.box {
  width: 150px;
  height: 150px;
  margin: auto;
  background-color: #5A74C9;
  transition: all .5s ease;
  
  &:hover {
    width: 300px;
    background-color: #CFF9A9;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.