Find My Angle

resolving coordinates & rotations natively

.petal {
  --a: calc(var(--i) * 1turn / var(--n));
  translate: calc(cos(var(--a)) * 8rem)
             calc(sin(var(--a)) * 8rem);
  rotate: atan2(var(--dy), var(--dx));
}