CSS Arrows

Developer
Size
1,921 Kb
Views
60,720

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 Previews

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;
}
CSS Arrows - Script Codes
CSS Arrows - Script Codes
Home Page Home
Developer Ash Blue
Username ashblue
Uploaded July 18, 2022
Rating 3
Size 1,921 Kb
Views 60,720
Do you need developer help for CSS Arrows?

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!

Ash Blue (ashblue) Script Codes
Create amazing love letters with AI!

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!