UNPKG

fari

Version:

A lightweight library for creating virtual tours

128 lines (110 loc) 1.93 kB
:root { --transparent: #58595f99; } html, body { justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0; padding: 0; display: flex; } img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; } #virtualTour { box-sizing: border-box; justify-content: center; align-items: center; width: 80%; height: 80%; margin: auto; display: flex; position: relative; } #virtualTour canvas { border-radius: 20px; max-width: 100%; max-height: 100%; display: block; } #roomInformation { background-color: var(--transparent); border-radius: 10px; min-width: 50px; min-height: 38px; display: none; position: absolute; top: 10px; left: 10px; } #roomName { color: #faebd7; margin: 10px; font-family: Inter, sans-serif; font-weight: 600; } #toggleFullScreen { background-color: var(--transparent); opacity: 1; border: none; border-radius: 50%; width: 40px; height: 40px; padding: 0; display: none; position: absolute; bottom: 10px; right: 10px; } #toggleFullScreen:hover { opacity: .6; } #toggleFullScreen > img { width: 20px; margin-left: 10px; display: block; } #loadingScreen { aspect-ratio: 1; box-sizing: border-box; filter: blur(5px) contrast(10) hue-rotate(300deg); background: #000; width: 100px; margin: auto; padding: 10px; display: grid; position: absolute; } #loadingScreen:before, #loadingScreen:after { content: ""; background: #ff0; grid-area: 1 / 1; width: 40px; height: 40px; animation: 2s infinite l7; } #loadingScreen:after { animation-delay: -1s; } @keyframes l7 { 0% { transform: translate(0); } 25% { transform: translate(100%); } 50% { transform: translate(100%, 100%); } 75% { transform: translate(0, 100%); } 100% { transform: translate(0); } } /*# sourceMappingURL=styles.3897cc4d.css.map */