First, we need to use the transform-origin attribute. The transform attribute must be used. It has many attributes. We only need to use the rotate attribute of transform (to set the 2D rotation angle), and then use transform-origin to set its center point. Finally, match it with the CSS3 animation attribute animation. Complete the effect we want. Circles are dynamic. animation:myfirst 10s linear infinite; myfirst: Id for binding @keyframes Finally, with @keyframes @keyframes myfirst{ 0%{ transform: rotate(0); } 25% transform:rotate(90deg); } 50%{ transform:rotate(180deg); } 75% transform:rotate(270deg); } 100%{ transform: rotate(360deg); } } Finished This is the end of this article about using transform-origin in CSS3 to achieve dot distribution on a big circle and rotation effects. For more related content about using transform-origin in CSS3 to achieve dot distribution on a big circle and rotation effects, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Example of how to change the line spacing of HTML table
>>: Example of how to display a default image when an image does not exist in HTML
Preface In today's increasingly convenient In...
Table of contents 1. Nodes, trees, and virtual DO...
Background In a list like the one below, clicking...
This article shares the specific code for Vue to ...
Table of contents Preface 1. Application componen...
Unzip the Maven package tar xf apache-maven-3.5.4...
What is HTML? HTML is a language used to describe...
Whether it is Samba service or NFS service, the m...
The content property was introduced as early as C...
Download the rpm installation package MySQL offic...
Problem background: When using docker to deploy t...
Effect: <div class="imgs"> <!-...
Table of contents Parent component listBox List c...
During today's lecture, I talked about the di...
This article example shares the specific code of ...