2.2.0 • Published 5 years ago

@scarygami/scary-cube v2.2.0

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
5 years ago

\<scary-cube>

Rubik's Cube implemented as web component based on lit-element.

Needs to be sized (best by fitting it into a parent element) to correctly display and scale.

Orientation of cube can be changed with mouse and touch gestures.

Moves need to be performed using the addMove or addMoves methods, using SiGN notation.

Colors of the cube can be changed using the following custom CSS properties, matching the sides of the cube

scary-cube {
  --cube-color-u: white;
  --cube-color-d: yellow;
  --cube-color-f: green;
  --cube-color-b: #3333FF;
  --cube-color-l: orange;
  --cube-color-r: red;
}

Additionaly the speed of the move animations can be adjusted with the --cube-speed parameter

scary-cube {
  --cube-speed: 0.4s;
}
2.2.0

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

2.0.0-dev.8

6 years ago

2.0.0-dev.7

6 years ago

2.0.0-dev.6

6 years ago

2.0.0-dev.5

6 years ago

2.0.0-dev.4

6 years ago

2.0.0-dev.3

6 years ago

2.0.0-dev.2

6 years ago

2.0.0-dev.1

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago