Soudal Fix All Flexi/Braun 49A 280ml Kartusche/Universalkleber
Soudal Fix All Flexi/Braun 49A 280ml Kartusche/Universalkleber
Soudal Fix All Flexi / Brown 49A 280ml cartridge / universal glue Expand description .expand-button { position: relative; width: 100%; justify-content: end; left: 0; background: none; border: none; color: #e63b20; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; transition: color 0.3s ease; } .arrow { display: inline-block; transition: transform 0.3s ease; margin-left: 5px; transform: rotate(180deg); } .description { overflow: hidden; transition: max-height 0.5s ease-in-out; max-height: 1.5em; /* Początkowo zwinięte */ } .collapsed { max-height: 1.5em; } .expanded { max-height: none; /* Ustawiane dynamicznie w JS */ } document.getElementById(toggleDescription”).addEventListener(“click”, funcion () { const description = document.getElementById(“description”); const arrow = document.getElementById(“toggleButtonArrow”); const buttonText = this.querySelector(‘.button-text’); if (description.classList.contains(‘collapsed’)) { description.style.maxHeight = description.scrollHeight + “px”; description.classList.remove(‘collapsed’); description.classList.add(‘expanded’); arrow.style.transform = “rotate(0deg)”; buttonText.textContent = “Zwiń opis”; } else { description.style.maxHeight = “1.5em”; description.classList.remove(‘expanded’); description.classList.add(‘collapsed’); arrow.style.transform = “rotate(180deg)”; buttonText.textContent = “Rozwiń opis”; } });”
Weiterlesen