Responsive Retina-Ready Menu

RazorFlow PHP Dashboard Framework

May 21, 2013 Comments (0) Views: 3392 Coding

Pure CSS3 Breadcrumb Navigation

The problem with most CSS3 based breadcrumbs is that they use border based triangles for the arrows which is awful because:

1. Hover effects are not pixel perfect – hovering on the arrows creates issues because they appear to be triangles but occupy a square region. So hovering/clicking at the edge of a link could trigger the event on the next/previous link actually.

2. You cannot use gradients on borders which means you are stuck with flat colored breadcrumb links.

3. You cannot animate the links along with the arrows using CSS3 transitions.

The solution is to use rotated squares lying half inside the link and half outside giving a triangular shape – not just in appearance but also in functionality.

But positioning rotated squares is a tedious task because the dimensions are all out of control. Hence we apply some math to scale down the rotated squares to occupy the same height as the links so that positioning them becomes easy.

View Snippet

Tags: #, #, #, #, #, #, #, #, #, #, #, #

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.