Navigation Indicator
How do I make an navigation indicator?
A (somewhat) practical use of drawing shapes with box-shadow. This element could be used to easily indicate arrow-key navigation possibilities.. What is a navigation indicator? How do you make a navigation indicator? This script and codes were developed by Mike Fowler on 22 August 2022, Monday.
Navigation Indicator - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Navigation Indicator</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .arrows { width: 0; height: 0; /* Order is Right, Down, Left, Up */ box-shadow: 12px 0 0 3px white, 0 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.up { box-shadow: 12px 0 0 3px white, 0 0 0 3px white, -12px 0 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.right { box-shadow: 0 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.down { box-shadow: 12px 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.left { box-shadow: 12px 0 0 3px white, 0 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
/* PRESENTATION-ONLY, NOT NEEDED FOR IMPLEMENTATION */
.arrows { position: absolute; top: 50%; left: 50%; margin-top: -12px;
}
.arrows:after { content: 'UP'; position: relative; display: block; top: 30px; left: -50px; width: 100px; text-align: center; font-family: 'Helvetica Neue', 'Arial', sans-serif; font-style: normal; font-size: 12px; letter-spacing: 1px;
}
.arrows.left { margin-left: -150px;
}
.arrows.left:after { content: 'LEFT';
}
.arrows.up { margin-left: -50px;
}
.arrows.up:after { content: 'UP';
}
.arrows.right { margin-left: 50px;
}
.arrows.right:after { content: 'RIGHT';
}
.arrows.down { margin-left: 150px;
}
.arrows.down:after { content: 'DOWN';
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <i class="arrows left"></i>
<i class="arrows up"></i>
<i class="arrows right"></i>
<i class="arrows down"></i> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Navigation Indicator - Script Codes CSS Codes
.arrows { width: 0; height: 0; /* Order is Right, Down, Left, Up */ box-shadow: 12px 0 0 3px white, 0 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.up { box-shadow: 12px 0 0 3px white, 0 0 0 3px white, -12px 0 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.right { box-shadow: 0 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.down { box-shadow: 12px 0 0 3px white, -12px 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
.arrows.left { box-shadow: 12px 0 0 3px white, 0 0 0 3px white, 0 -12px 0 3px white, 12px 0 0 5px black, 0 0 0 5px black, -12px 0 0 5px black, 0 -12px 0 5px black;
}
/* PRESENTATION-ONLY, NOT NEEDED FOR IMPLEMENTATION */
.arrows { position: absolute; top: 50%; left: 50%; margin-top: -12px;
}
.arrows:after { content: 'UP'; position: relative; display: block; top: 30px; left: -50px; width: 100px; text-align: center; font-family: 'Helvetica Neue', 'Arial', sans-serif; font-style: normal; font-size: 12px; letter-spacing: 1px;
}
.arrows.left { margin-left: -150px;
}
.arrows.left:after { content: 'LEFT';
}
.arrows.up { margin-left: -50px;
}
.arrows.up:after { content: 'UP';
}
.arrows.right { margin-left: 50px;
}
.arrows.right:after { content: 'RIGHT';
}
.arrows.down { margin-left: 150px;
}
.arrows.down:after { content: 'DOWN';
}
Navigation Indicator - Script Codes JS Codes
(function() {
}).call(this);

Developer | Mike Fowler |
Username | mikefowler |
Uploaded | August 22, 2022 |
Rating | 3 |
Size | 3,472 Kb |
Views | 44,506 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
IOS7 Geolocation Map Marker | 4,359 Kb |
Rounded Avatar | 3,263 Kb |
Mixtape | 3,691 Kb |
Map Locator Marker | 4,026 Kb |
Coverflow Animation | 2,864 Kb |
A Pen by Mike Fowler | 3,067 Kb |
Nickname generator | 7,313 Kb |
Image Markers | 3,194 Kb |
Page Transitions in Backbone | 3,691 Kb |
Coverflow | 3,581 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Lecture 1 | Law | 0 Kb |
Basic template | Tomcat | 1,675 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Weather App | Kw7oe | 3,162 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
Responsive Menu I | Rodericksandoval | 3,045 Kb |
Blog Concept - Single Post | Marionebl | 9,603 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!