diff --git a/wp-content/themes/dekart/assets/css/camp.css b/wp-content/themes/dekart/assets/css/camp.css index 885d6c3..4a25621 100644 --- a/wp-content/themes/dekart/assets/css/camp.css +++ b/wp-content/themes/dekart/assets/css/camp.css @@ -514,42 +514,6 @@ html { } /* ═══ SECTION REVEAL — fade + translateY + scale ═══ */ -.section-reveal { - opacity: 0; - transform: translateY(30px) scale(0.97); - transition: opacity 650ms cubic-bezier(0.25, 0.1, 0.25, 1), - transform 650ms cubic-bezier(0.25, 0.1, 0.25, 1); -} -.section-reveal.revealed { - opacity: 1; - transform: translateY(0) scale(1); -} -@media (max-width: 768px) { - .section-reveal { - transform: translateY(20px); - transition-duration: 400ms; - } - .section-reveal.revealed { - transform: translateY(0); - } -} -@media (min-width: 769px) { - .section-reveal > * { - opacity: 0; - transform: translateY(12px) scale(0.97); - transition: opacity 650ms cubic-bezier(0.25, 0.1, 0.25, 1), - transform 650ms cubic-bezier(0.25, 0.1, 0.25, 1); - } - .section-reveal.revealed > * { - opacity: 1; - transform: translateY(0) scale(1); - } - .section-reveal.revealed > *:nth-child(2) { transition-delay: 80ms; } - .section-reveal.revealed > *:nth-child(3) { transition-delay: 160ms; } - .section-reveal.revealed > *:nth-child(4) { transition-delay: 240ms; } - .section-reveal.revealed > *:nth-child(5) { transition-delay: 320ms; } - .section-reveal.revealed > *:nth-child(n+6) { transition-delay: 360ms; } -} /* suggestions */ @@ -2390,15 +2354,6 @@ html { .section-bg[data-bg="white"]::before { background: var(--bg-white); } .section-bg[data-bg="mint"]::before { background: var(--bg-mint); } -@media (prefers-reduced-motion: reduce) { - .section-reveal, - .section-reveal.revealed, - .section-reveal.revealed > * { - opacity: 1 !important; - transform: none !important; - transition: none !important; - animation: none !important; - } .suggestions__item { animation: none; } .banner_label { animation: none; } .scroll-icon-wrapper { display: none; } diff --git a/wp-content/themes/dekart/assets/js/camp.js b/wp-content/themes/dekart/assets/js/camp.js index fc8fc59..34459f5 100644 --- a/wp-content/themes/dekart/assets/js/camp.js +++ b/wp-content/themes/dekart/assets/js/camp.js @@ -97,22 +97,6 @@ document.addEventListener("click", function (event) { return; } }); - -(function() { - if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return; - const els = document.querySelectorAll('.section-reveal'); - if (!els.length) return; - const o = new IntersectionObserver((entries) => { - entries.forEach(e => { - if (e.isIntersecting) { - e.target.classList.add('revealed'); - o.unobserve(e.target); - } - }); - }, { threshold: 0.15, rootMargin: '-80px 0px -80px 0px' }); - els.forEach(el => o.observe(el)); -})(); - document.querySelectorAll('.box__accordion_label').forEach(function(label) { label.addEventListener('keydown', function(e) { if (e.key === 'Enter' || e.key === ' ') { diff --git a/wp-content/themes/dekart/page-camp.php b/wp-content/themes/dekart/page-camp.php index 57bd42d..2cdd8cd 100644 --- a/wp-content/themes/dekart/page-camp.php +++ b/wp-content/themes/dekart/page-camp.php @@ -137,7 +137,7 @@ $metrics = [ -
+
@@ -184,7 +184,7 @@ $metrics = [
-
+

Почему мамы выбирают "Декарт": дети бегут сюда сами

Никаких уговоров по утрам. Никаких «забери меня». Только горящие глаза и «а можно ещё?»

@@ -205,7 +205,7 @@ $metrics = [ } ?>
-
+

Цифры, которые говорят сами за себя

@@ -293,7 +293,7 @@ $metrics = [
-
+
-
+

Наши наставники и ведущие мастер-классов

-
+

Распорядок дня в клубе

-
+
-
+

Что говорят о нас родители

-
+

Часто задаваемые вопросы

@@ -577,7 +577,7 @@ $metrics = [
-
+