Collapse Function
Posted: Sat Jun 18, 2022 3:15 pm
How to do a collapse function in WWB. I see a just toggle option which (fade shows hides) in (Action) in Events but is there a way to do toggle Collapse (expand and collapse).
WYSIWYG Web Builder
https://www.wysiwygwebbuilder.com/forum/
https://www.wysiwygwebbuilder.com/forum/viewtopic.php?t=95047
Collapse uses JavaScript and it also has a smooth css transition
so instead of slide in slide out effect can this exact div height Collapse be done using toggle event along with transition?Sass
Variables
$transition-collapse: height .35s ease;
$transition-collapse-width: width .35s ease;
Classes
Collapse transition classes can be found in scss/_transitions.scss as these are shared across multiple components (collapse and accordion).
.collapse {
&:not(.show) {
display: none;
}
}
.collapsing {
height: 0;
overflow: hidden;
@include transition($transition-collapse);
&.collapse-horizontal {
width: 0;
height: auto;
@include transition($transition-collapse-width);
}
}