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
System tray icons are still a magical feature tod...
Preface Sorting is a basic function in databases,...
Attribute check-strictly The official document pr...
Preface Sometimes when hover pseudo-class adds a ...
question: My blog encoding is utf-8. Sometimes whe...
This article uses an example to describe how MySQ...
Table of contents Official introduction to Node.j...
Table of contents 1. Create a table 1.1. Basic sy...
First way: skip-grant-tables: Very useful mysql s...
Table of contents 1. First, let’s explain what Re...
undefined In JavaScript, if we want to determine ...
This article example shares the specific code of ...
Table of contents 1. One-way value transfer betwe...
1 Problem description: 1.1 When VMware is install...
I don't know if you have ever encountered suc...