I'm trying to do an off-canvas search form for a website. The input form should move down from the top (100% width) of the page pulling the rest of the contents down when the "search" button is clicked.
I'm not a pro in javascript so I searched on the web but didn't find anything, only off canvas menus that have different usages. I tried but it was too difficult for me to adapt them.
What are the steps to make it properly?
Here is the search form:
<form method="get" action="<?php echo $PS ?>web/search.php">
<label for="search"><?php echo t('search') ?></label>
<input type="text" name="search" id="search" />
<button type="submit"> <span class="visuallyhidden">Go</span></button>
</form>
Any tips? Thank you!