Skip to content

Commit

Permalink
update face example to flip display horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
hiukim committed Feb 8, 2023
1 parent 287b5d0 commit 38266e6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/face-tracking/example1.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
position: absolute;
width: 100%;
height: 100%;
transform: scaleX(-1);
}
</style>
</head>
Expand Down
1 change: 1 addition & 0 deletions examples/face-tracking/example2.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
position: absolute;
width: 100%;
height: 100%;
transform: scaleX(-1);
}
.options-panel {
position: fixed;
Expand Down
1 change: 1 addition & 0 deletions examples/face-tracking/example3.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
position: absolute;
width: 100%;
height: 100%;
transform: scaleX(-1);
}

#example-control-overlay {
Expand Down
8 changes: 7 additions & 1 deletion examples/face-tracking/three-css.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
height: 100vh;
position: relative;
overflow: hidden;
transform: scaleX(-1);
}
#ar-div {
width: 1000px;
Expand All @@ -44,14 +45,19 @@
align-items: center;
color: white;
}
#ar-div > div {
transform: scaleX(-1);
}
</style>
</head>
<body>
<div id="container">
</div>

<div id="ar-div">
This is a CSS div
<div>
This is a CSS div
</div>
</div>
</body>
</html>
Expand Down
1 change: 1 addition & 0 deletions examples/face-tracking/three-facemesh.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
height: 100vh;
position: relative;
overflow: hidden;
transform: scaleX(-1);
}
</style>
</head>
Expand Down
1 change: 1 addition & 0 deletions examples/face-tracking/three.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
height: 100vh;
position: relative;
overflow: hidden;
transform: scaleX(-1);
}

#control {
Expand Down

0 comments on commit 38266e6

Please sign in to comment.