- Сообщения
- 132
- Реакции
- 109

В
PAGE_CONTAINER перед </body>
HTML:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<div id="quick-access-panel" class="quick-access-panel">
<div class="panel-container">
<a href="/" class="panel-button" title="Главная страница">
<i class="fas fa-home"></i>
</a>
<a href="/whats-new/posts" class="panel-button" title="Новые сообщения">
<i class="fas fa-comment-dots"></i>
</a>
<a href="/conversations/" class="panel-button" title="Личные сообщения">
<i class="fas fa-envelope"></i>
</a>
<a href="/account/alerts" class="panel-button" title="Уведомления">
<i class="fas fa-bell"></i>
</a>
<a href="https://vk.com/kannadec" class="panel-button" title="ВКонтакте" target="_blank" rel="noopener noreferrer">
<i class="fab fa-vk"></i>
</a>
</div>
</div>
<style>
.quick-access-panel {
position: fixed;
right: 16px;
top: 50%;
transform: translateY(-50%);
z-index: 9999;
animation: fadeSlideIn 0.6s ease-out;
}
.panel-container {
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px;
background: rgba(26, 26, 26, 0.95);
backdrop-filter: blur(8px);
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-button {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
background: #1a1a1a;
color: white;
border-radius: 50%;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.panel-button:hover {
background: #2d88ff;
transform: scale(1.1);
box-shadow: 0 8px 20px rgba(45, 136, 255, 0.3);
animation: scaleBounce 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.panel-button:hover::before {
opacity: 1;
}
.panel-button::before {
content: '';
position: absolute;
inset: 0;
background: rgba(45, 136, 255, 0.2);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
.panel-button i {
font-size: 20px;
transition: transform 0.2s ease;
position: relative;
z-index: 1;
}
.panel-button:hover i {
transform: scale(1.1);
}
@keyframes fadeSlideIn {
0% {
opacity: 0;
transform: translateY(-50%) translateX(20px);
}
100% {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
}
@keyframes scaleBounce {
0% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1.1);
}
}
@media (max-width: 768px) {
.quick-access-panel {
display: none;
}
}
.panel-button {
animation: buttonSlideIn 0.4s ease-out forwards;
}
.panel-button:nth-child(1) {
animation-delay: 0.1s;
}
.panel-button:nth-child(2) {
animation-delay: 0.2s;
}
.panel-button:nth-child(3) {
animation-delay: 0.3s;
}
.panel-button:nth-child(4) {
animation-delay: 0.4s;
}
.panel-button:nth-child(5) {
animation-delay: 0.5s;
}
@keyframes buttonSlideIn {
0% {
opacity: 0;
transform: translateX(20px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
</style>
Последнее редактирование: