cutechicken commited on
Commit
e44b683
β€’
1 Parent(s): 2cd9fd9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +23 -29
index.html CHANGED
@@ -87,38 +87,34 @@
87
  }
88
 
89
  #crosshair {
90
- position: fixed;
91
- top: 25%;
92
- left: 50%;
93
- transform: translate(-50%, -50%);
94
- width: 40px;
95
- height: 40px;
96
- border: 2px solid rgba(255,0,0,0.7);
97
- border-radius: 50%;
98
- z-index: 1001;
99
- pointer-events: none;
100
- mix-blend-mode: difference;
101
- transition: all 0.2s ease; /* λΆ€λ“œλŸ¬μš΄ μ „ν™˜ 효과 μΆ”κ°€ */
102
- }
103
- /* μ‘°μ€€ κ°€λŠ₯ μƒνƒœμ˜ ν¬λ‘œμŠ€ν—€μ–΄ μŠ€νƒ€μΌ */
104
- #crosshair.target-locked {
105
- border: 4px solid rgba(0,255,0,0.9);
106
- box-shadow: 0 0 10px rgba(0,255,0,0.5);
 
107
  }
108
 
109
  #crosshair::before,
110
  #crosshair::after {
111
  content: '';
112
  position: absolute;
113
- background: rgba(255,0,0,0.7);
114
  transition: all 0.2s ease;
115
  }
116
 
117
- #crosshair.target-locked::before,
118
- #crosshair.target-locked::after {
119
- background: rgba(0,255,0,0.9);
120
- }
121
-
122
  #crosshair::before {
123
  top: 50%;
124
  left: -10px;
@@ -135,12 +131,10 @@
135
  transform: translateX(-50%);
136
  }
137
 
138
- #crosshair.target-locked::before {
139
- height: 4px;
140
- }
141
-
142
- #crosshair.target-locked::after {
143
- width: 4px;
144
  }
145
 
146
  #healthBar {
 
87
  }
88
 
89
  #crosshair {
90
+ position: fixed;
91
+ top: 50%;
92
+ left: 50%;
93
+ transform: translate(-50%, -50%);
94
+ width: 40px;
95
+ height: 40px;
96
+ border: 2px solid #00ff00;
97
+ border-radius: 50%;
98
+ z-index: 1001;
99
+ pointer-events: none;
100
+ transition: all 0.2s ease;
101
+ }
102
+
103
+ /* 물체가 κ°μ§€λ˜μ—ˆμ„ λ•Œμ˜ μŠ€νƒ€μΌ */
104
+ #crosshair.target-detected {
105
+ border-color: #ff0000;
106
+ border-width: 3px;
107
+ box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
108
  }
109
 
110
  #crosshair::before,
111
  #crosshair::after {
112
  content: '';
113
  position: absolute;
114
+ background: #00ff00;
115
  transition: all 0.2s ease;
116
  }
117
 
 
 
 
 
 
118
  #crosshair::before {
119
  top: 50%;
120
  left: -10px;
 
131
  transform: translateX(-50%);
132
  }
133
 
134
+ /* 물체가 κ°μ§€λ˜μ—ˆμ„ λ•Œμ˜ 크둜슀 라인 μŠ€νƒ€μΌ */
135
+ #crosshair.target-detected::before,
136
+ #crosshair.target-detected::after {
137
+ background: #ff0000;
 
 
138
  }
139
 
140
  #healthBar {