css动画将图片绕着中心点旋转

@keyframes App-logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .appLogo {
        animation: App-logo-spin infinite 20s linear;
    }
}

给图片添加类名为applogo即可

你可能感兴趣的:(css,动画,javascript)