Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } @property --memberRotation { syntax: "
"; initial-value: 0; inherits: true; } * { box-sizing: border-box; margin: 0; padding: 0 } ul.team{ width: 80vmin; list-style: none; aspect-ratio: 1/1; border-radius: 50%; animation: memberRotation 10s linear infinite; > li { offset-path: border-box; offset-distance: calc(100% / var(--member-count) * var(--member-idx) + (var(--memberRotation) * 100%)); width: calc(100% / (1 + (1 / sin(180deg / var(--member-count))))); position: relative; > img { position: absolute; width: 100%; border: 5px solid red; scale: .8; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; rotate: calc(-360deg / var(--member-count) * var(--member-idx) - (360deg * var(--memberRotation))) } } &:has(img:hover){ animation-play-state: paused } } @keyframes memberRotation { to { --memberRotation: 1 } } html, body { height: 100% } body { margin: 0; display: grid; place-items: center; padding: 2rem; background-color: black }
console.log("Event Fired")