Thu May 12 2022
Curvy Background Image
CSS5725 views
File Name: Curvy-background-image.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Curve Background Image</title>
<style>
* {
padding: 0;
margin: 0;
}
section {
width: 100%;
height: 850px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-image: url('https://cdn.pixabay.com/photo/2021/12/25/10/41/beach-6892858_960_720.jpg');
position: relative;
}
section::before {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 300px;
background-position: top center;
background-repeat: no-repeat;
background-size: cover;
background-image: url('svg-curve.svg');
}
</style>
</head>
<body>
<section class="heroBanner"></section>
</body>
</html>
File Name: Svg-shape.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#ffffff" fill-opacity="1" d="M0,32L48,69.3C96,107,192,181,288,192C384,203,480,149,576,117.3C672,85,768,75,864,106.7C960,139,1056,213,1152,208C1248,203,1344,117,1392,74.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>
Author:Geekboots