improved readability
This commit is contained in:
parent
62fdce6ae5
commit
cb3582dce0
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@ interface SpinnerProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Spinner extends React.Component<SpinnerProps> {
|
export default class Spinner extends React.Component<SpinnerProps> {
|
||||||
|
balls: unknown[] = []
|
||||||
|
|
||||||
motion = keyframes`
|
motion = keyframes`
|
||||||
from {
|
from {
|
||||||
transform: scale(1, 1);
|
transform: scale(1, 1);
|
||||||
|
@ -91,12 +93,12 @@ export default class Spinner extends React.Component<SpinnerProps> {
|
||||||
animation: ${this.spin} 10s infinite;
|
animation: ${this.spin} 10s infinite;
|
||||||
`
|
`
|
||||||
|
|
||||||
balls: unknown[] = []
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
|
|
||||||
let keyValue = 0
|
let keyValue = 0
|
||||||
const countBallsInLine = 3
|
const countBallsInLine = 3
|
||||||
|
|
||||||
for (let i = 0; i < countBallsInLine; i++) {
|
for (let i = 0; i < countBallsInLine; i++) {
|
||||||
for (let j = 0; j < countBallsInLine; j++) {
|
for (let j = 0; j < countBallsInLine; j++) {
|
||||||
this.balls.push(
|
this.balls.push(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue