So in the above image after clicking the button I need to show some more content.
And also space before the footer should also increase decrease accordingly as shown.
Any help is appreciated.
Any help is appreciated.
Yes easily, just setup the ‘show more content’ parts on your page and set them as collapsed on load on the properties panel for it.
Then simply have the onClick event handler on your button simply expand those items and they will be shown as the page expands and the footer is pushed downwards to accommodate.
The same goes for it you want to do the opposite and have them collapse, you will need another button with a onClick event handler to make them collapse when the button is clicked.
https://support.wix.com/en/article/corvid-working-with-the-properties-panel
https://www.wix.com/corvid/reference/$w.CollapsedMixin.html
https://support.wix.com/en/article/corvid-reacting-to-user-actions-using-events
Wix Corvid Example.
https://www.wix.com/corvid/example/collapse-elements
Another Wix Corvid example.
https://www.youtube.com/watch?v=nkVId-BkgPc
Plus note the difference between show and hide and collapse and expand as they are different when applied on your page.
https://www.wix.com/corvid/reference/$w.HiddenMixin.html
https://www.wix.com/corvid/reference/$w.CollapsedMixin.html