Pure CSS knockout arrow

Size
2,344 Kb
Views
26,312

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 Previews

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 */
}
Pure CSS knockout arrow - Script Codes
Pure CSS knockout arrow - Script Codes
Home Page Home
Developer Aaron Gustafson
Username aarongustafson
Uploaded August 13, 2022
Rating 3.5
Size 2,344 Kb
Views 26,312
Do you need developer help for Pure CSS knockout arrow?

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!

Aaron Gustafson (aarongustafson) Script Codes
Create amazing marketing copy 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!