/
beliberda
/
music_web
Обзор
Документация
Войти
/
beliberda
/
music_web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
preloader.css
129 строк
3 KB
beliberda
upload files
12 дек 2025, 23:27
12 дек 2025, 23:27
582f374
Код
Авторство
О чём код?
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, #0f0c29, #302b63, #24243e); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; font-family: 'Arial', sans-serif; color: white; transition: opacity 0.5s ease, visibility 0.5s ease; } .record-container { position: relative; width: 300px; height: 300px; margin-bottom: 40px; } .vinyl-record { width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, #111 30%, #000 70%); position: relative; animation: spin 2s linear infinite; box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); } .vinyl-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(45deg, #ff0080, #00ffcc); display: flex; align-items: center; justify-content: center; text-align: center; z-index: 2; } .vinyl-label { color: white; font-weight: bold; font-size: 14px; line-height: 1.1; } .vinyl-grooves { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient( circle, transparent, transparent 5px, rgba(255,255,255,0.05) 5px, rgba(255,255,255,0.05) 6px ); } .tone-arm { position: absolute; top: -40px; right: 30px; width: 40px; height: 150px; transform-origin: top right; transform: rotate(30deg); transition: transform 1s ease-out; z-index: 3; } .arm { width: 8px; height: 100%; background: linear-gradient(to bottom, #888, #555); border-radius: 4px; margin-left: auto; } .needle { width: 20px; height: 4px; background: #ff3300; position: absolute; bottom: 0; right: 0; transform: rotate(15deg); transform-origin: right center; } .loading-bar { width: 300px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; margin-top: 10px; } .loading-progress { height: 100%; width: 0%; background: linear-gradient(to right, #ff0080, #00ffcc); border-radius: 2px; transition: width 0.3s ease; } .loading-text { margin-bottom: 15px; font-size: 18px; text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); } @keyframes spin { 100% { transform: rotate(360deg); } } .preloader.loaded .vinyl-record { animation: spin-slow 3s linear infinite; } .preloader.loaded .tone-arm { transform: rotate(5deg); } @keyframes spin-slow { 100% { transform: rotate(360deg); } } .preloader.hidden { opacity: 0; visibility: hidden; }