private _triggerExpandAnimation()

in components/RuiExpandCollapse/src/RuiExpandCollapse.ts [159:170]


	private _triggerExpandAnimation(): void {
		if (this._collapsibleEl) {
			// remove collapse transition listener if it has not already ticked over
			this._collapsibleEl.removeEventListener('transitionend', this._collapseTransitionEndHandler);

			this._collapsibleEl.hidden = false;
			const sectionHeight = this._collapsibleEl.scrollHeight;
			this._collapsibleEl.style.height = `${sectionHeight}px`;
			this._collapsibleEl.classList.remove('hide-content');
			this._collapsibleEl.addEventListener('transitionend', this._expandTransitionEndHandler);
		}
	}