One Element Conic Gradient

Size
2,248 Kb
Views
16,192

How do I make an one element conic gradient?

One Element Conic Gradient by linear-gradient and brend-mode.. What is a one element conic gradient? How do you make a one element conic gradient? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.

One Element Conic Gradient Previews

One Element Conic Gradient - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>One Element Conic Gradient</title> <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! */ html,body { margin: 0; padding: 0; height: 100%; overflow:hidden; font-size: 10vw; background-color:#cdc; color: #898;
}
body::before,
body::after { content: ""; height: 5em; width: 5em; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; border: 10px solid #333; border-radius: 50%; background-color: #eee; background-blend-mode: difference; background-image: linear-gradient(240deg,rgba(0,0,0,0) 50%,rgba(0,0,255,1) 50%), linear-gradient(120deg,rgba(0,0,0,0) 50%,rgba(0,255,0,1) 50%), linear-gradient(0deg,rgba(0,0,0,0) 50%,rgba(255,0,0,1) 50%);
}
body::after { mix-blend-mode: screen; mix-blend-mode: difference; transform: rotate(180deg); transition: 0.5s; animation: 4s linear infinite roll;
}
@keyframes roll { 0% { transform: rotate(0); } 100% { transform: rotate(1turn); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> One Element Conic Gradient by linear-gradient and brend-mode.
</body>
</html>

One Element Conic Gradient - Script Codes CSS Codes

html,body { margin: 0; padding: 0; height: 100%; overflow:hidden; font-size: 10vw; background-color:#cdc; color: #898;
}
body::before,
body::after { content: ""; height: 5em; width: 5em; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; border: 10px solid #333; border-radius: 50%; background-color: #eee; background-blend-mode: difference; background-image: linear-gradient(240deg,rgba(0,0,0,0) 50%,rgba(0,0,255,1) 50%), linear-gradient(120deg,rgba(0,0,0,0) 50%,rgba(0,255,0,1) 50%), linear-gradient(0deg,rgba(0,0,0,0) 50%,rgba(255,0,0,1) 50%);
}
body::after { mix-blend-mode: screen; mix-blend-mode: difference; transform: rotate(180deg); transition: 0.5s; animation: 4s linear infinite roll;
}
@keyframes roll { 0% { transform: rotate(0); } 100% { transform: rotate(1turn); }
}
One Element Conic Gradient - Script Codes
One Element Conic Gradient - Script Codes
Home Page Home
Developer Keisuke Takahashi
Username ksksoft
Uploaded November 19, 2022
Rating 3
Size 2,248 Kb
Views 16,192
Do you need developer help for One Element Conic Gradient?

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!

Keisuke Takahashi (ksksoft) Script Codes
Create amazing art & images 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!