showcar-ui
Version:
Showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.
14 lines (12 loc) • 463 B
JavaScript
/*export default function Teaser() {
this.$teasers = document.querySelectorAll('.sc-teaser__item');
}
Teaser.prototype.init = function() {
Array.prototype.forEach.call(this.$teasers, teaser => {
teaser.addEventListener('click', () => {
teaser.querySelector('.sc-teaser__body').classList.toggle('sc-hidden');
teaser.querySelector('.sc-teaser__icon').classList.toggle('sc-teaser__icon--isRotate');
});
});
};
*/