add pressure

This commit is contained in:
xmcp
2018-08-24 21:57:18 +08:00
parent 9b5154ea4d
commit cf78b74330
5 changed files with 127 additions and 20 deletions

17
src/PressureHelper.css Normal file
View File

@@ -0,0 +1,17 @@
.pressure-box {
border: 500px /* also change js! */ solid orange;
position: fixed;
margin: auto;
z-index: 100;
pointer-events: none;
transition:
top 100ms linear,
bottom 100ms linear,
left 100ms linear,
right 100ms linear;
}
.pressure-box-fired {
border-color: orangered;
pointer-events: initial !important;
}