Joystick for mobile
This commit is contained in:
1 parent
e8c3f9862a
commit
54c6327ac7
4 files changed
+120
-3
No files matched your search
@@ -9,6 +9,30 @@ html, body {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: #000;
|
||||
touch-action: none;
|
||||
}
|
||||
.joystick-base {
|
||||
position: fixed;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border: 2px solid rgba(255, 255, 255, 0.25);
|
||||
pointer-events: none;
|
||||
display: none;
|
||||
z-index: 5;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.joystick-thumb {
|
||||
position: fixed;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.45);
|
||||
pointer-events: none;
|
||||
display: none;
|
||||
z-index: 6;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
#fullscreen {
|
||||
position: fixed;
|
||||
|
||||
Reference in new issue
Block a user