1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-10 22:41:43 +02:00
This commit is contained in:
Anton Titovets
2025-07-10 19:21:20 +03:00
parent 819dfe965c
commit ff50f8e4ef
2 changed files with 7 additions and 5 deletions

View File

@@ -459,9 +459,9 @@ li > a.menu__link {
@keyframes fall {
0% {
transform: translateY(-100px);
opacity: 0.25;
opacity: 0.15;
}
35% {
28% {
opacity: 0;
}
100% {

View File

@@ -38,14 +38,16 @@ const iconList = [
];
const FallingIcons = () => {
const iconCount = 60; // количество падающих иконок
const baseIconCount = 350;
const iconCount = Math.round(baseIconCount * (window.innerWidth / 1000));
const icons = [];
for (let i = 0; i < iconCount; i++) {
const randomIcon = iconList[Math.floor(Math.random() * iconList.length)];
const left = (i / (iconCount - 1)) * 100; // равномерное распределение по ширине
const duration = Math.random() + 20;// случайная длительность от 6 до 10 секунд
const delay = Math.random() * 20; // случайная задержка от 0 до 5 секунд
const duration = Math.random() + 40;// случайная длительность от 6 до 10 секунд
const delay = Math.random() * 40; // случайная задержка от 0 до 5 секунд
icons.push(
<img