Hard-Stop Gradients

Developer
Size
2,288 Kb
Views
8,096

How do I make an hard-stop gradients?

What is a hard-stop gradients? How do you make a hard-stop gradients? This script and codes were developed by Mackdoyle on 26 December 2022, Monday.

Hard-Stop Gradients Previews

Hard-Stop Gradients - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hard-Stop Gradients</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* * Hard-stop gradients * Create angles for css shapes with linear-gradients using a single color for 0-50% and another for 50-100% */
.hard-grad { position: absolute; width: 100%; height: 100%; background: linear-gradient(-45deg, rgba(255, 136, 152, 0.5) 0%, rgba(255, 136, 152, 0.5) 50%, rgba(255, 199, 153, 0.5) 50%, rgba(255, 199, 153, 0.5) 100%);
}
.hard-grad-2 { position: absolute; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(100, 199, 204, 0.5) 0%, rgba(100, 199, 204, 0.5) 50%, rgba(18, 136, 152, 0.5) 50%, rgba(18, 136, 152, 0.5) 100%);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="hard-grad"></div>
<div class="hard-grad-2"></div>
</body>
</html>

Hard-Stop Gradients - Script Codes CSS Codes

/* * Hard-stop gradients * Create angles for css shapes with linear-gradients using a single color for 0-50% and another for 50-100% */
.hard-grad { position: absolute; width: 100%; height: 100%; background: linear-gradient(-45deg, rgba(255, 136, 152, 0.5) 0%, rgba(255, 136, 152, 0.5) 50%, rgba(255, 199, 153, 0.5) 50%, rgba(255, 199, 153, 0.5) 100%);
}
.hard-grad-2 { position: absolute; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(100, 199, 204, 0.5) 0%, rgba(100, 199, 204, 0.5) 50%, rgba(18, 136, 152, 0.5) 50%, rgba(18, 136, 152, 0.5) 100%);
}
Hard-Stop Gradients - Script Codes
Hard-Stop Gradients - Script Codes
Home Page Home
Developer Mackdoyle
Username mackdoyle
Uploaded December 26, 2022
Rating 4
Size 2,288 Kb
Views 8,096
Do you need developer help for Hard-Stop Gradients?

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!

Mackdoyle (mackdoyle) 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!