<img src="https://assets.codepen.io/1480814/av+1.png" alt="a random avatar picture" >
img {
  --b: 5px;
  
  width: 280px;
  aspect-ratio: 1;
  background: 
    radial-gradient(
      circle closest-side,
      #ECD078 calc(99% - var(--b)),#C02942 calc(100% - var(--b)) 99%,#0000
     );
  cursor: pointer;
  transition: .5s;
}
img:hover {
  transform: scale(1.35);
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-content: center;
  background: #E0E4CC;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.