Skip to content

Commit c7b2973

Browse files
update
1 parent 3eb5ee4 commit c7b2973

3 files changed

Lines changed: 6 additions & 17 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ HTML3D is a JavaScript library for creating 3D scenes with HTML and CSS 3D trans
44
See the demo:<br />
55
https://html3d.com
66

7-
The demo works in Chromium-based browsers and Safari. The demo does not work in Firefox.
7+
The demo showcases a fully recursive game-within-a-game.<br>
8+
The demo works in Chromium-based browsers and Safari. Unfortunately, the demo is too large for Firefox to handle.
89

910
![HTML3D demo](./images/html3d_demo.png?raw=true "HTML3D demo")
1011

1112
**src/index.html**<br />
12-
This html file is the homepage of html3d.com. It is a demo of HTML3D's capabilities, showcasing a recursive game-within-a-game.
13+
This html file is the homepage of html3d.com. It is a demo of HTML3D's capabilities.
1314
All the code is in the html file. You can use this file as a starting point for creating your own 3D scenes.
1415

1516
**src/HTML3D.js**<br>

src/HTML3D.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,7 @@ class HTML3D {
551551
return this;
552552
}
553553
toCSSMatrixString() {
554-
const e = this.elements;
555-
return 'matrix3d(' +
556-
e[0] + ',' + e[1] + ',' + e[2] + ',' + e[3] + ',' +
557-
e[4] + ',' + e[5] + ',' + e[6] + ',' + e[7] + ',' +
558-
e[8] + ',' + e[9] + ',' + e[10] + ',' + e[11] + ',' +
559-
e[12] + ',' + e[13] + ',' + e[14] + ',' + e[15] +
560-
')';
554+
return `matrix3d(${this.elements.join(',')})`;
561555
}
562556
}
563557
HTML3D.BoundingBox = class BoundingBox {

src/index.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,7 @@
594594
return this;
595595
}
596596
toCSSMatrixString() {
597-
const e = this.elements;
598-
return 'matrix3d(' +
599-
e[0] + ',' + e[1] + ',' + e[2] + ',' + e[3] + ',' +
600-
e[4] + ',' + e[5] + ',' + e[6] + ',' + e[7] + ',' +
601-
e[8] + ',' + e[9] + ',' + e[10] + ',' + e[11] + ',' +
602-
e[12] + ',' + e[13] + ',' + e[14] + ',' + e[15] +
603-
')';
597+
return `matrix3d(${this.elements.join(',')})`;
604598
}
605599
}
606600
HTML3D.BoundingBox = class BoundingBox {
@@ -870,7 +864,7 @@
870864
</div>
871865
<div style="position: absolute; left: 100px; top: 180px; width: 1400px; height: 100px; color: #ffffff; font-size: 32px;">
872866
HTML3D is a JavaScript library for creating 3D scenes with HTML and CSS 3D transforms.<br />
873-
This demo is a showcase of HTML3D's capabilities.
867+
This demo showcases a building with a recursive game-within-a-game.
874868
</div>
875869
<div style="position: absolute; left: 100px; top: 300px; width: 1100px; height: 120px; color: #ffffff; font-size: 100px;">
876870
move

0 commit comments

Comments
 (0)