OKNA PCV NAJWYŻSZEJ JAKOŚCI

Komfort w Twoim domu

EKSKLUZYWNE OKNA DREWNIANE

Naturalny materiał, ponadczasowy design

OKNA ALUMINIOWE

Nowoczesna architektura bez kompromisów

DRZWI KOMPOZYTOWE

Bezpieczeństwo i energooszczędność
w jednym

CIEPŁA BELKA

Szczelny montaż dla budownictwa energooszczędnego

Slajder hero — 4Hand

Moduł Divi: Slajder pełnoszerokościowy (Fullwidth Slider)
Sekcja: pełnoszerokościowa, klasa hero-slider
Moduł: klasa hero-4hand  →  Zaawansowane › Identyfikatory i klasy CSS › Klasa CSS

Jak przenieść na inną stronę

  1. Skopiuj z tej strony sekcję ze slajderem (prawy klik na sekcji › Kopiuj) i wklej na docelowej stronie. Albo zapisz ją do Biblioteki Divi.
  2. Skopiuj moduł Kod z tej strony i wklej na docelowej stronie — w nim siedzi cały CSS i dzięki temu slajder działa od razu, bez szukania stylów.
  3. Jeśli moduł ma na stałe zostać na docelowej stronie, przenieś CSS z modułu Kod do Divi › Opcje motywu › Niestandardowe CSS lub do pliku motywu, a moduł Kod skasuj.

Ustawienia modułu, bez których nie zadziała

  • Wysokość minimalna: 670px  ·  Dopełnienie: 120px | | 229px | |
  • Tło modułu: #323232  ·  Paralaksa: włączona
  • Strzałki i kropki: kolor #F0C609 (nadpisywane przez CSS, ale zostaw dla spójności)
  • Automatyczna animacja: włączona, prędkość 3000 ms
  • Nagłówek slajdu: Source Sans Pro 800, 84px (tablet 60px, telefon 46px), poziom h2
  • Treść slajdu: Source Sans Pro, 32px, interlinia 1.1em
  • Na każdym slajdzie w polu Zaawansowane › Niestandardowy CSS › Główny element: background-blend-mode: multiply; background-color: rgba(50,50,50,0.5);

Co ten CSS robi

  • żółty panel rgba(240,198,9,0.9) na 40% szerokości slajdu (na telefonie 100%)
  • napis 4HAND nad tytułem — dodany przez .et_pb_slide_description::before, bo Divi nie ma takiego pola
  • przycisk: skos przez clip-path + najazd „wipe” ciemnym kolorem + strzałka po tekście
  • paginacja w prawym dolnym rogu: białe tło, strzałki ← → i numery slajdów z licznika CSS

Kod CSS — do skopiowania

/* =====================================================
   SLAJDER HERO 4HAND - PEŁNY KOD
   ===================================================== */

.hero-4hand {
  position: relative !important;
  counter-reset: slide-counter;
}

.hero-4hand .et_pb_slider {
  position: relative !important;
}

.hero-4hand .et_pb_slide {
  position: relative;
}

.hero-4hand .et_pb_slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: rgba(240, 198, 9, 0.9);
  z-index: 1;
}

.hero-4hand .et_pb_slide_description {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 !important;
  padding: 30px 30px 30px 30px !important;
  text-align: left !important;
}

.hero-4hand .et_pb_slide_description p:first-child {
  margin-bottom: 20px;
}


/* =====================================================
   PRZYCISK SLAJDERA - biały skośny + wipe na hover (gradient)
   ===================================================== */

html body .hero-4hand .et_pb_more_button.et_pb_button {
  color: #323232 !important;
  border: 0 none !important;
  border-radius: 0 !important;
  padding: 18px 40px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  text-transform: none !important;
  clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%) !important;
  -webkit-clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%) !important;

  /* Gradient 50% ciemny / 50% biały, 2x szerszy niż przycisk */
  background: linear-gradient(to right, #323232 50%, #ffffff 50%) !important;
  background-color: #ffffff !important;
  background-size: 200% 100% !important;
  background-position: right bottom !important;     /* startujemy z białą stroną widoczną */
  background-repeat: no-repeat !important;

  transition: background-position 0.5s ease, color 0.5s ease !important;
  display: inline-block !important;
}

/* Hover: gradient zjeżdża w lewo - ciemna połowa zalewa przycisk */
html body .hero-4hand .et_pb_more_button.et_pb_button:hover {
  color: #ffffff !important;
  background-position: left bottom !important;
  padding: 18px 40px !important;
}

/* Strzałka po tekście */
html body .hero-4hand .et_pb_more_button.et_pb_button::after {
  content: " →" !important;
  display: inline !important;
  margin-left: 8px !important;
  position: static !important;
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}


/* =====================================================
   PAGINACJA - białe tło, strzałki + cyfry
   ===================================================== */

.hero-4hand::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 360px !important;
  height: 60px !important;
  background: #ffffff !important;
  z-index: 9 !important;
  pointer-events: none !important;
  display: block !important;
}

.hero-4hand .et-pb-slider-arrows {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 360px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 11 !important;
  background: transparent !important;
  display: block !important;
  pointer-events: none;
}

.hero-4hand .et-pb-arrow-prev,
.hero-4hand .et-pb-arrow-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  font-size: 0 !important;
  line-height: 40px !important;
  text-align: center !important;
  text-shadow: none !important;
  visibility: visible !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 13 !important;
}

.hero-4hand .et-pb-arrow-prev { left: 15px !important; }
.hero-4hand .et-pb-arrow-next { right: 15px !important; left: auto !important; }

.hero-4hand .et-pb-arrow-prev::before {
  content: "←" !important;
  font-size: 24px !important;
  color: #F0C609 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  display: inline-block !important;
  line-height: 40px !important;
}

.hero-4hand .et-pb-arrow-next::before {
  content: "→" !important;
  font-size: 24px !important;
  color: #F0C609 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  display: inline-block !important;
  line-height: 40px !important;
}

.hero-4hand .et-pb-arrow-prev::after,
.hero-4hand .et-pb-arrow-next::after {
  display: none !important;
  content: none !important;
}

.hero-4hand .et-pb-arrow-prev:hover::before,
.hero-4hand .et-pb-arrow-next:hover::before {
  color: #323232 !important;
}

.hero-4hand .et-pb-controllers {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  top: auto !important;
  width: 360px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  z-index: 12 !important;
  background: transparent !important;
  pointer-events: none;
}

.hero-4hand .et-pb-controllers a {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  font-size: 0 !important;
  color: #cccccc !important;
  counter-increment: slide-counter;
  text-shadow: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.hero-4hand .et-pb-controllers a::before {
  content: counter(slide-counter) !important;
  display: inline-block !important;
  color: inherit !important;
  font-size: 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

.hero-4hand .et-pb-controllers .et-pb-active-control,
.hero-4hand .et-pb-controllers a.et-pb-active-control {
  color: #F0C609 !important;
  background: transparent !important;
}

.hero-4hand .et-pb-controllers a:hover {
  color: #F0C609 !important;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero-4hand .et_pb_slide::before {
    width: 100%;
    background: rgba(240, 198, 9, 0.85);
  }
  .hero-4hand .et_pb_slide_description {
    max-width: 100%;
    padding: 40px 20px !important;
  }
  .hero-4hand::after,
  .hero-4hand .et-pb-slider-arrows,
  .hero-4hand .et-pb-controllers {
    width: 280px !important;
  }
}

.hero-4hand .et_pb_slide_description::before {
  content: "4HAND";
  display: block;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

Ten sam kod jest w module Kod poniżej (etykieta „CSS modułu”) — dlatego slajder na tej stronie wygląda poprawnie niezależnie od ustawień reszty serwisu. Drugi moduł Kod odpowiada tylko za wygląd tego opisu i nie należy go kopiować.