CSS Arrows
How do I make an css arrows?
What is a css arrows? How do you make a css arrows? This script and codes were developed by Ash Blue on 18 July 2022, Monday.
CSS Arrows - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Arrows</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Pure CSS Arrows</h1>
<p>Create arrows for your projects with a pure SCSS mixin. Based on: http://css-tricks.com/snippets/css/css-triangle/</p>
<h2>Regular Arrows (U, D, L, R)</h2>
<div class="arrow up"></div>
<div class="arrow down"></div>
<div class="arrow left"></div>
<div class="arrow right"></div>
<h2>Corner Arrows</h2>
<div class="arrow top-left"></div>
<div class="arrow top-right"></div>
<div class="arrow bottom-left"></div>
<div class="arrow bottom-right"></div>
<h3>Pure SCSS Mixin</h3>
<pre><code>
@mixin arrow ($direction, $width, $height, $color) { width: 0; height: 0; display: block; @if $direction == 'up' { border-left: $width solid transparent; border-right: $width solid transparent; border-bottom: $height solid $color; } @else if $direction == 'left' { border-top: $height solid transparent; border-bottom: $height solid transparent; border-right: $width solid $color; } @else if $direction == 'down' { border-left: $width solid transparent; border-right: $width solid transparent; border-top: $height solid $color; } @else if $direction == 'right' { border-top: $height solid transparent; border-bottom: $height solid transparent; border-left: $width solid $color; } @else if $direction == 'top-left' { border-right: $width solid transparent; border-top: $height solid $color; } @else if $direction == 'top-right' { border-left: $width solid transparent; border-top: $height solid $color; } @else if $direction == 'bottom-left' { border-right: $width solid transparent; border-bottom: $height solid $color; } @else if $direction == 'bottom-right' { border-left: $width solid transparent; border-bottom: $height solid $color; }
}
</code></pre>
</body>
</html>
CSS Arrows - Script Codes CSS Codes
.arrow { width: 0; height: 0; margin-bottom: 10px; display: inline-block;
}
.arrow.up { border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 20px solid black;
}
.arrow.down { border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid #f00;
}
.arrow.right { border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 10px solid green;
}
.arrow.left { border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right:20px solid blue;
}
.arrow.top-left { border-right: 20px solid transparent; border-top: 20px solid black;
}
.arrow.top-right { border-left: 20px solid transparent; border-top: 20px solid black;
}
.arrow.bottom-left { border-right: 20px solid transparent; border-bottom: 20px solid black;
}
.arrow.bottom-right { border-left: 20px solid transparent; border-bottom: 20px solid black;
}
Developer | Ash Blue |
Username | ashblue |
Uploaded | July 18, 2022 |
Rating | 3 |
Size | 1,921 Kb |
Views | 60,720 |
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 |
Responsive Gallery Grid Layout | 2,071 Kb |
Overflowing Gallery | 1,566 Kb |
HTML5 Editable Table | 3,252 Kb |
HTML5 Canvas Text Wrap Test | 3,076 Kb |
Fancy Image Zoom | 1,502 Kb |
Pure CSS Responsive Modal | 1,161 Kb |
CSS Sprite Animation | 3,732 Kb |
Flow Chart Prototype | 4,149 Kb |
HTML5 Canvas Progress Bar | 2,827 Kb |
JavaScript Anagram Algorithm Explanation | 1,897 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 |
Very Simple Slider | Doodlemarks | 2,682 Kb |
Subtle site navigation with description | Necks | 3,206 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
SVG Hover Animations | Kjbrum | 10,557 Kb |
Alter bg opacity on hover... | Chrisboon27 | 2,054 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!