Css how to achieve the circle to slowly shrink inward, boss to give a wave of ideas

how do you slowly shrink in the blue outside like this and don"t overwrite the previous content

Css
Aug.19,2021

you can simulate colored masks by border or box-shadow .

.box{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 0 10000px -sharp000;
    background-color: transparent;
    animation: border_shrink 1s;
  }
  @keyframes border_shrink {
    0% {
      width: 100px;
      height: 100px;
    }
    100% {
      width: 0;
      height: 0;
    }
  }

this circle can be realized by setting broder-radius:50% with the same width and height as div, and then shrinking inward is actually changing the width and height of div


usually using canvas
, that is, the blue background is at the bottom, the content is on the top, and then give the content border-radius

.
Menu