I did something quite similar on the Inlay documentation site: http://docs.inlay.io If you look at the stylesheet (all made in Freeway, for a change!) http://docs.inlay.io/css/sheet1.css you can see a class style named .shy. It applies a translateX transform to the menu when it’s applied to the menu. The animation effect is just from the transition:all part of that rule, which makes this move take 400ms to complete. Further down the list, the .sidebar style gives the menu the semi-transparent background (the rgba color definition had to be made in the Extended interface).
The JavaScript was added to the page with Protaculous2, and consisted entirely of this:
$('navigation').observe('mouseenter', function(evt){
this.toggleClassName('shy');
}).observe('mouseleave', function(evt){
this.toggleClassName('shy');
}).observe('touchend', function(evt){
this.toggleClassName('shy');
});
In my example, the sidebar was drawn on the page in the location where it was going to appear, set to Position Fixed, height to 100%, and the width was adjusted along with the .shy class translateX amount so it would collapse down to the bar. Then I used the Item/Extended dialog to add the classnames sidebar and shy to the navigation bar. In Freeway, it looked as it would open, and when the page loads, it is in the hidden mode, and when you mouse over it (or touch it in iOS), it opens up until you click something or mouse away.
Walter
On Jan 5, 2016, at 9:40 AM, grantsymon email@hidden wrote:
I posted this link a few days ago in the Exhibeo section, but I’m wondering if there is any way that I can get my current implementation of css menu (made with the css menus action) to do this sliding/hiding thing … and also have the transparency?
http://demo-7.photodeck.com/-/galleries/portfolio-style
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options