Pure CSS knockout arrow
How do I make an pure css knockout arrow?
Using ::before and ::after, we can create two bordered elements that, when combined, create a knockout arrow.. What is a pure css knockout arrow? How do you make a pure css knockout arrow? This script and codes were developed by Aaron Gustafson on 13 August 2022, Saturday.
Pure CSS knockout arrow - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS knockout arrow</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <head> <title>Pure CSS Knock-out Arrow</title> </head> <body> <div class="hero"> <img src="http://farm3.staticflickr.com/2431/3875936992_348d6dd86b_b.jpg" alt=""/> </div> <p>Photo by <a href="/photos/kwl/">kennymatic</a></p> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Pure CSS knockout arrow - Script Codes CSS Codes
.hero { position: relative; overflow: hidden;
}
.hero img { display: block; width: 960px; height: auto;
}
.hero::before { content: "\00A0"; display: block; border: 960px solid #fff; /* the width of the image */ border-top-width: 0; border-bottom-width: 0; height: 30px; /* 1/2 the triangle width */ width: 60px; /* the triangle width */ position: absolute; bottom: 0; left: -630px; /* the left offset - the image width */
}
.hero::after { content: "\00A0"; display: block; border: 30px solid #fff; /* 1/2 the triangle width */ border-top: 30px solid transparent; /* 1/2 the triangle width */ border-bottom-width: 0; height: 0; width: 0; position: absolute; bottom: 0; left: 330px; /* the left offset */
}
Developer | Aaron Gustafson |
Username | aarongustafson |
Uploaded | August 13, 2022 |
Rating | 3.5 |
Size | 2,344 Kb |
Views | 26,312 |
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 |
Lazy Loading Images | 4,245 Kb |
Pure CSS Modal | 3,569 Kb |
Easy Couch Mode | 8,819 Kb |
Simplified JS-based MQ Inspector | 2,353 Kb |
Form Patterns | 5,922 Kb |
Auto-advance example | 3,328 Kb |
Visualizing CSS Transforms | 3,155 Kb |
Un-doing tables | 3,993 Kb |
MQ-based Content-controlled Optional Image Loading | 3,047 Kb |
Zoom Layouts v2 | 2,098 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 |
Calendar | Miroot | 2,033 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 Kb |
Addthis_button | Esambino | 1,691 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
CSS Chat Bubbles | Boylett | 2,094 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Minimelephant | Smashlee | 2,507 Kb |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Project MMetro beta | Atomicsong | 5,157 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!