@realsee/dnalogel
Version:
91 lines (82 loc) • 1.96 kB
JavaScript
const e = `<style type="text/css">
.PanoRulerPlugin-rule-line {
position: absolute;
transform-origin: left center;
width: 0;
height: 0.0625rem;
}
.PanoRulerPlugin-rule-line::after {
content: '';
position: absolute;
left: -0.125rem;
top: -0.1rem;
width: 0.25rem;
height: 0.25rem;
border-radius: 50%;
background: #FFFFFF;
z-index: 1;
animation: viewport-rule-point 0.1s 1s;
animation-fill-mode: both;
}
.PanoRulerPlugin-rule-line::before {
content: '';
position: absolute;
right: -0.125rem;
top: -0.1rem;
width: 0.25rem;
height: 0.25rem;
border-radius: 50%;
background: #FFFFFF;
animation: viewport-rule-point 0.1s 1.5s;
animation-fill-mode: both;
}
.PanoRulerPlugin-rule-line em {
background: #fff;
display: block;
height: 100%;
animation: viewport-rule-line 0.5s ease 1s;
animation-fill-mode: both;
box-shadow: 0 0 0.25rem rgb(0 0 0 / 40%);
}
.PanoRulerPlugin-rule-label {
position: absolute;
width: 0;
height: 0;
top: 0.0625rem;
}
.PanoRulerPlugin-rule-label-name {
position: absolute;
padding: 0.1875rem 0.375rem;
background: rgba(195,195,195,0.30);
backdrop-filter: blur(0.25rem);
-webkit-backdrop-filter: blur(0.25rem);
border-radius: 6.25rem;
border: 0.0625rem solid rgba(255,255,255,0.6);
white-space: nowrap;
overflow: hidden;
color: #FFFFFF;
font-weight: 500;
font-size: 0.75rem;
line-height: 1;
-webkit-animation: viewport-rule-label 0.25s ease 1s;
animation: viewport-rule-label 0.25s ease 1s;
animation-fill-mode: both;
box-shadow: inset 0 0 0.625rem 0 rgba(255,255,255,0.30);
}
@keyframes viewport-rule-line {
0% { width: 0% }
100% { width: 100% }
}
@keyframes viewport-rule-label {
0% { opacity: 0; transform: scaleX(0); }
100% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
}
@keyframes viewport-rule-point {
0% { transform: scaleX(0); }
100% { transform: scaleX(1); }
}
</style>
`;
export {
e as default
};