I am currently utilizing the wave menu effect from OffCanvasMenuEffects. You can view this menu in action below:
... // CSS code snippets here
<link rel="stylesheet" type="text/css" href="https://tympanus.net/Development/OffCanvasMenuEffects/fonts/font-awesome-4.2.0/css/font-awesome.min.css" />
<script src="https://tympanus.net/Development/OffCanvasMenuEffects/js/snap.svg-min.js"></script>
... // HTML and script elements here
The default behavior of the menu is to open from bottom to top. I would like to change it to open from top to bottom, similar to how it functions on this website: .
How can I achieve this change? I attempted to edit the CSS class .menu-wrap
, replacing bottom: 0;
with top: 0;
as shown below:
.menu-wrap {
position: absolute;
top: 0; //edited
left: 0;
z-index: 1001;
width: 100%;
height: 160px;
font-size: 1.15em;
-webkit-transform: translate3d(0,160px,0);
transform: translate3d(0,160px,0);
-webkit-transition: -webkit-transform 0.4s;
transition: transform 0.4s;
}
After making this adjustment, how can I ensure that the menu opens from top to bottom, similar to the website mentioned earlier: ?
... // Updated CSS code snippets here
<link rel="stylesheet" type="text/css" href="https://tympanus.net/Development/OffCanvasMenuEffects/fonts/font-awesome-4.2.0/css/font-awesome.min.css" />
<script src="https://tympanus.net/Development/OffCanvasMenuEffects/js/snap.svg-min.js"></script>
... // More HTML and script elements here