CSS HTML PHP
Биение сердца для Logo в Favicon
/* Контейнер */
.logo-heart-container {
position: relative;
display: inline-block;
width: 67px;
height: 67px;
}
/* Сердце: основа */
.heart-overlay {
position: absolute;
top: 53%;
left: 50%;
width: 8px;
height: 8px;
background-color: #4facfe;
transform: translate(-50%, -50%) rotate(-45deg);
z-index: 10;
animation: heartbeat 1.2s infinite ease-in-out;
}
/* Левая верхушка сердца */
.heart-overlay::before {
content: "";
position: absolute;
width: 8px;
height: 8px;
background-color: #4facfe;
border-radius: 50%;
top: -4px; /* ← исправлено: 4px вместо 5px */
left: 0;
}
/* Правая верхушка сердца */
.heart-overlay::after {
content: "";
position: absolute;
width: 8px;
height: 8px;
background-color: #4facfe;
border-radius: 50%;
top: 0;
right: -4px; /* ← исправлено: 4px вместо 5px */
}
/* Анимация */
@keyframes heartbeat {
0% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
14% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.4); }
28% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
42% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.4); }
70% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
}
<a href="https://puls-saytov.ru/" target="_blank" class="logo-heart-container" title="Создание и продвижение сайтов любой сложности">
<img src="/img/logo_ps_100.svg" width="67" height="67" alt="Пульс Сайтов" style="display: block;">
<div class="heart-overlay"></div>
</a>
<div style="text-align: center; margin: 20px 0;">
<a href="https://puls-saytov.ru/" target="_blank" rel="noopener noreferrer" style="display: inline-block;" title="Пульс сайтов">
<img src="/img/logo_100.svg" alt="Пульс Сайтов" style="width: 25px; height: 25px; display: block;">
</a>
</div>
#4facfe гол
#2b3e50 син
