UNPKG

pixi-cull

Version:

a library to visibly cull objects designed to work with pixi.js

61 lines (54 loc) 1.01 kB
body { margin: 0; padding: 0; width: 100vw; height: 100vh; } .container { display: flex; flex-direction: row; width: 100vw; height: 100vh; overflow: hidden; } .controls { padding: 0 0.5rem; border-left: 10px solid rgb(220,220,220); background: rgb(240,240,240); height: 100%; white-space: nowrap; width: 12rem; } .title { font-weight: bold; font-size: 1.1rem; margin: 0.5rem 0 1rem; } .checkbox { margin-top: 0.5rem; } .pixi { flex-grow: 1; } .instructions { border-radius: 1rem; background: rgb(240,240,240); border: 10px solid rgb(220,220,220); padding: 2rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; max-width: 8rem; text-align: center; opacity: 1; pointer-events: none; } .fade { transition-delay: 2s; transition-property: opacity; transition-duration: 2s; transition-timing-function: ease-in-out; }