react-video-zoom
Version:
React component for magnifying glass circle on a video when hovering.
21 lines (19 loc) • 393 B
CSS
.video-container {
position: relative;
width: fit-content;
height: fit-content;
overflow: hidden;
}
.video-container video {
display: block;
cursor: none;
}
.video-container .zoom-container {
position: absolute;
width: 150px;
height: 150px;
border-radius: 50%;
transform: translate(-50%, -50%);
overflow: hidden;
border: 3px solid black;
}