logicalone
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by logicalone
-
-
I am using the W3S responsive top menu but the transition to open the mobile menu is not smooth.
I'm good with css but my skills with JS are lacking. Can someone please advise the code to make the transition slide open?
This is the current JS:
<script>
function myFunction() {
var x = document.getElementByld("myTopnav");
if (x.className === "topnav") {
x.className += "responsive";
} else {
x.className = "topnav";
}
}
</script>
Any help gratefully received. Thanks
Java for responsive top menu
in JavaScript
Posted · Edited by logicalone
Thank you very much
However, the transition to open the menu is still very abrupt. I would like it to slide open more slowly and smoothly.