Is it? Could make some people dizzy if they suffer vestibular disorder, migraines, etc.
From a UX perspective, it's not helping to keep focus, since you need to refocus. It adds cognitive load and could produce an effect similar to motion sickness.
Should be gated behind motion preferences. ✌🏽