css make image circle code example

Example 1: css photo circle

img{
    clip-path: circle();
}

Example 2: convert image in rounshape in css

img {
  border-radius: 50%;
}

Example 3: crop image with circle css

.image-cropper {
  width: 100px;
  height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

img {
  display: inline;
  margin: 0 auto;
  height: 100%;
  width: auto;
}

Example 4: rounded scrolling images

<div class="MagicScroll" data-options="loop: rewind;">    <img src="example1.jpg" />    <img src="example2.jpg" />    ...</div>

Tags:

Html Example