Parallelogram with background-image
How do I make an parallelogram with background-image?
What is a parallelogram with background-image? How do you make a parallelogram with background-image? This script and codes were developed by Olivier C on 19 November 2022, Saturday.
Parallelogram with background-image - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Parallelogram with background-image</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="parallelogram"></div> <script src="js/index.js"></script>
</body>
</html>
Parallelogram with background-image - Script Codes CSS Codes
.parallelogram { overflow: hidden; width: 30rem; height: 10rem; background-color: #000; -webkit-transform: skew(-20deg) rotate(-20deg); transform: skew(-20deg) rotate(-20deg);
}
.parallelogram::after { content: ''; display: block; width: 110%; height: 200%; background-image: url("https://c1.staticflickr.com/9/8505/8378769627_7a8d4f7a2b_b.jpg"); background-size: cover; -webkit-transform: rotate(20deg) skew(20deg) translateX(-5%) translateY(-21%); transform: rotate(20deg) skew(20deg) translateX(-5%) translateY(-21%);
}
html,
body { height: 100%;
}
body { margin: 0; background-color: #333; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
Parallelogram with background-image - Script Codes JS Codes
// Css only...
Developer | Olivier C |
Username | olivier-c |
Uploaded | November 19, 2022 |
Rating | 3 |
Size | 2,401 Kb |
Views | 70,840 |
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 |
Signature | 16,001 Kb |
Responsive Masonry in CSS only | 3,823 Kb |
Number Lists | 2,486 Kb |
Vertical Organizational Chart | 3,634 Kb |
Space Invaders | 54,137 Kb |
Arrow Scroll Top | 7,025 Kb |
A Pen by Olivier C | 1,980 Kb |
TagSphere | 3,539 Kb |
Mosaic | 6,825 Kb |
Graphs | 4,250 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 |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Filter inputs | Rowinf | 1,721 Kb |
See Through | Larrygeams | 77,410 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Vue.js Starter | Andymerskin | 1,268 Kb |
Tree growth tests | Orchard | 3,818 Kb |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
Hmmm... | Rk007 | 4,848 Kb |
V.35 The Monolith Update - Hero Release Notes | Jordan | 12,045 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!