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


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

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.