Slanty goodness

Size
2,707 Kb
Views
8,096

How do I make an slanty goodness?

A nice little trick with CSS. What is a slanty goodness? How do you make a slanty goodness? This script and codes were developed by Charlie Walter on 11 January 2023, Wednesday.

Slanty goodness Previews

Slanty goodness - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slanty goodness</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<header> <h1>Slanty goodness</h1>
</header>
<div class="slanty-wrapper"><code>transform: skew(0, 4deg);</code> <div class="slanty-content"><code>transform: skew(0, -4deg);</code> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos fugiat dicta cupiditate, corporis corrupti in nam dolore nobis a, ut sed quasi, deserunt perspiciatis. Qui unde sunt voluptatibus sit reprehenderit.</p> </div>
</div>
<div class="slanty-wrapper"><code>transform: skew(0, -2deg);</code> <div class="slanty-content"><code>transform: skew(0, 2deg);</code> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos fugiat dicta cupiditate, corporis corrupti in nam dolore nobis a, ut sed quasi, deserunt perspiciatis. Qui unde sunt voluptatibus sit reprehenderit.</p> </div>
</div>
<footer> <h2>Cool huh?</h2>
</footer>
</body>
</html>

Slanty goodness - Script Codes CSS Codes

body { background-color: #FF7A2E; color: white; font-family: Open sans, Helvetica Neue; font-weight: bold; margin: 0; text-align: center;
}
header { padding: 10em 1em; padding: 5em 1em;
}
.slanty-wrapper { background-color: #8C87FF; margin-bottom: -5em; -webkit-transform: skew(0, 4deg); -ms-transform: skew(0, 4deg); transform: skew(0, 4deg);
}
.slanty-wrapper .slanty-content { padding: 10em 1em; -webkit-transform: skew(0, -4deg); -ms-transform: skew(0, -4deg); transform: skew(0, -4deg);
}
.slanty-wrapper + .slanty-wrapper { background-color: #77CC64; -webkit-transform: skew(0, -2deg); -ms-transform: skew(0, -2deg); transform: skew(0, -2deg);
}
.slanty-wrapper + .slanty-wrapper .slanty-content { -webkit-transform: skew(0, 2deg); -ms-transform: skew(0, 2deg); transform: skew(0, 2deg);
}
footer { padding: 10em 1em; background-color: #1FB200; z-index: 1000; position: relative;
}
Slanty goodness - Script Codes
Slanty goodness - Script Codes
Home Page Home
Developer Charlie Walter
Username cjonasw
Uploaded January 11, 2023
Rating 4.5
Size 2,707 Kb
Views 8,096
Do you need developer help for Slanty goodness?

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!

Charlie Walter (cjonasw) Script Codes
Create amazing SEO content 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!