![]() So there you have it, a technique for use as you see fit, just beware of the usability pitfalls.Menus Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Hover Tabs Top Navigation Responsive Topnav Split Navigation Navbar with Icons Search Menu Search Bar Fixed Sidebar Side Navigation Responsive Sidebar Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Sidebar with Icons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Centered Menu Link Equal Width Menu Links Fixed Menu Slide Down Bar on Scroll Hide Navbar on Scroll Shrink Navbar on Scroll Sticky Navbar Navbar on Image Hover Dropdowns Click Dropdowns Cascading Dropdown Dropdown in Topnav Dropdown in Sidenav Resp Navbar Dropdown Subnavigation Menu Dropup Mega Menu Mobile Menu Curtain Menu Collapsed Sidebar Collapsed Sidepanel Pagination Breadcrumbs Button Group Vertical Button Group Sticky Social Bar Pill Navigation Responsive Header And of course we’ve got the problem of touch interfaces! Also, there’s no easy way to set a delay before it closes, so as soon as you leave the area, the div will hide back, which again may not be the most usable solution. The biggest problem with this is that of course a click is not required to activate the transition, so if the user indadvertedly hovers over the trigger div it will pull out the slider, which can be annoying. ![]() ![]() This can be a nice way of doing these sort of slide-out interfaces without having to write any JavaScript. If the browser doesn’t support this, it will still work, just won’t be animated. This basically animates the transition with a sliding motion, rather than simply triggering the div. The transition-duration property sets the time duration for the transition, which makes the transition appear smooth on browsers than support CSS3. The inner container shifts to the right as well, exposing itself and its contents. When you hover over the trigger div, it moves to the right the same distance as the width of the inner container. The trigger div with the label starts aligned left on the page. What happens is the inner div starts with negative y-coordinates, hidden away by being pushed left out of the page.
0 Comments
Leave a Reply. |