Spaces:
Running
Running
| .compare-container { | |
| max-width: 800px; | |
| margin: 40px auto; | |
| position: relative; | |
| cursor: crosshair; | |
| } | |
| .compare-images { | |
| position: relative; | |
| width: 100%; | |
| height: auto; | |
| overflow: hidden; | |
| border-radius: 10px; | |
| aspect-ratio: 16 / 9; | |
| } | |
| .compare-img { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| transition: clip-path 0.1s ease-out; | |
| } | |
| .before-img { | |
| clip-path: inset(0 0 0 50%); | |
| z-index: 1; | |
| } | |
| .after-img { | |
| z-index: 0; | |
| } | |
| .slider-handle { | |
| position: absolute; | |
| top: 0; | |
| left: 50%; | |
| width: 2px; | |
| height: 100%; | |
| background-color: #2ebead; | |
| pointer-events: none; | |
| z-index: 2; | |
| opacity: 0.7; | |
| transition: left 0.1s ease-out; | |
| } | |
| .slider-handle::after { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: -11px; | |
| transform: translateY(-50%); | |
| width: 25px; | |
| height: 25px; | |
| background-color: #2ebead; | |
| border-radius: 50%; | |
| } | |