Changing menu transition direction?
-
I’m working on a site for a friend, and was asked to stylize the menu-opening animation (for when the menu opens on a mobile phone like iOS). Currently the menu slides open left to right, and I was asked to have it slide down from above (starting offscreen obviously). However I can’t seem to change the direction. I can change the speed in seconds and things like color, but not any direction other than left. Any help please? I have some experience with CSS but nothing serious the past few years. And I’m trying to use Customizing > Custom CSS to make changes.
relevant image: https://i.imgur.com/HUOrag6.png
(also, sorry if I posted in the wrong forum)
#sidr.sidr.left {
background-color: red;
transition: left 2s !important;
}– am I supposed to be able to change “left” to something like “up” and see a difference? because if I change it to anything other than “left”, the menu just instantly pops in, like anything other than “left” doesn’t work.
-
Hello,
Please link to the site so that I can check it. Do you have any reference site so that I can understand what you exactly want?
Hey, yeah the site is http://pepperidgelawns.com/. Notice if you make the browser screen small enough horizontally, the menu becomes the hamburger icon in the upper-right. I was hoping I could change the transition animation when clicking on the icon (unless it’s not possible).
It seems you already have added a code related to it and it is working fine.
#sidr.sidr.left { transition: left 0.3s !important; }
What I’m wondering is, can I change “left” to something like “down” or “up” and have the menu come down from above? Or is that not possible? I don’t have a modern phone and have never designed for phones before (and also haven’t designed websites in a few years) so I don’t know much about this.
To use dropdown style, go to Customize > Header > Mobile Menu and select ‘Dropdown’ style instead of ‘Sidebar’ from the Mobile Menu Style setting.
Thanks!
You’re welcome!
- The topic ‘Changing menu transition direction?’ is closed to new replies.