]> _ Git - spinepro.git/commitdiff
wait #7070 @1:00
authorsoufiane <soufiane@cubedesigners.com>
Fri, 11 Oct 2024 09:27:49 +0000 (11:27 +0200)
committersoufiane <soufiane@cubedesigners.com>
Fri, 11 Oct 2024 09:27:49 +0000 (11:27 +0200)
wp-content/themes/CCV/dist/styles/app.css
wp-content/themes/CCV/resources/assets/scripts/header-slideshow.js
wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl

index ddec2a1446ee16fa3fcd5a84b34cb3a864850159..4ef126e21e6d53b40181a48af4d0859dc25dfc6c 100644 (file)
@@ -2897,7 +2897,7 @@ h4,
   color: rgba(255, 255, 255, var(--text-opacity));
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
-  background: rgba(3,18,54,0.84);
+  background: #031236;
   text-transform: none;
   padding: 3.75em 2em 0.75em 2.5em;
   margin: 0 !important;
index 41b3c1a1b6f37ece92998fc8374fba7d56784071..5ee490295b336743d4060e5b6df09c204c42c86e 100644 (file)
@@ -37,6 +37,7 @@ import debounce from 'lodash.debounce';
         setTimeout(function() {
           revealText(slidesText)
         }, 1000)
+        revealLastText(slidesText);
       }
 
       function showSlide(index) {
@@ -45,19 +46,19 @@ import debounce from 'lodash.debounce';
         currentSlide = (index + slides.length) % slides.length;
         addBySlides(slides)
         addBySlides(slidesText)
-        revealText(slidesText)
       }
 
       function removeBySlide(slides) {
         $(slides[currentSlide]).removeClass('showing');
         $scope.find(`[data-slide="${currentSlide}"]`).removeClass('active');
 
-        $(slides[currentSlide]).find(".header-slideshow-title, .header-slideshow-body p,.header-slideshow-body li").removeClass("showing")
+        $(slides[currentSlide]).not(':last-child').find(".header-slideshow-title, .header-slideshow-body p,.header-slideshow-body li").removeClass("showing")
       }
 
       function addBySlides(slides) {
         $(slides[currentSlide]).addClass('showing');
         $scope.find(`[data-slide="${currentSlide}"]`).addClass('active');
+        revealText(slidesText)
       }
 
       function nextSlide() {
@@ -80,6 +81,10 @@ import debounce from 'lodash.debounce';
         })
       }
 
+      function revealLastText(slides) {
+        $(slides).last().find(".header-slideshow-title,.header-slideshow-body p,.header-slideshow-body li").addClass('showing')
+      }
+
     });
   });
 })(jQuery);
index 70551dc068f39dfa204ba9028de318b0b8483a38..363567739b5a5f9ee8b00ee04a9b403a85b6f3c3 100644 (file)
@@ -1,5 +1,5 @@
 $breakpoint-slideshow-images = 600px
-$title_bg = rgba(#031236, 0.84)
+$title_bg = #031236
 
 .header-slideshow
   position: relative