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 The company's Ubuntu server places th...
1. HTML part <Col span="2">Upload...
This article is mainly for those who do not under...
Docker version: [root@localhost gae_proxy]# docke...
1. Browser rendering mode and doctype Some web pa...
When MySQL queries tens of millions of data, most...
Multiple values combined display Now we have th...
This is the effect to be achieved: You can see th...
1 Start the Docker service First you need to know...
Image tag : <img> To insert an image into a ...
Table of contents Preface Query usage scenario ca...
· 【Scene description】 After HTTP1.1, the HTTP pro...
The interviewer will sometimes ask you, tell me h...
Table of contents Preface start React Lifecycle R...
There are four main MySQL string interception fun...