Starburst
How do I make an starburst?
What is a starburst? How do you make a starburst? This script and codes were developed by Ludvig Lindblom on 25 July 2022, Monday.
Starburst - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Starburst</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='css/yjfis.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! */ @import "compass/css3";
$width: 15em;
$height: 15em;
$size: 3em;
$lineheight: 5em;
%starburst { width: $width; height: $height; background: $darkbluegrey; border-radius: 1.9em;
}
.starburst { @extend %starburst; margin: 5em auto 0; position: relative; span { color: $lightbright; text-align: center; font-size: $size; font-weight: 800; line-height: $lineheight; display: block; width: 100%; height: 100%; position: absolute; z-index: 2; transform: rotate(-13deg); } &:before, &:after { @extend %starburst; position: absolute; top: 0; left: 0; content: ""; } &:before { transform: rotate(-30deg); } &:after { transform: rotate(30deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='starburst'> <span> 50% off </span>
</div>
</body>
</html>
Starburst - Script Codes CSS Codes
@import "compass/css3";
$width: 15em;
$height: 15em;
$size: 3em;
$lineheight: 5em;
%starburst { width: $width; height: $height; background: $darkbluegrey; border-radius: 1.9em;
}
.starburst { @extend %starburst; margin: 5em auto 0; position: relative; span { color: $lightbright; text-align: center; font-size: $size; font-weight: 800; line-height: $lineheight; display: block; width: 100%; height: 100%; position: absolute; z-index: 2; transform: rotate(-13deg); } &:before, &:after { @extend %starburst; position: absolute; top: 0; left: 0; content: ""; } &:before { transform: rotate(-30deg); } &:after { transform: rotate(30deg); }
}
Developer | Ludvig Lindblom |
Username | ludviglindblom |
Uploaded | July 25, 2022 |
Rating | 3 |
Size | 3,581 Kb |
Views | 48,576 |
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 |
Canvas animation | 2,386 Kb |
Canvas box-shadow pixel art generator | 3,678 Kb |
Fullscreen API | 2,979 Kb |
Christmas Tree | 2,301 Kb |
Christmas ornaments | 2,124 Kb |
CSS loading spinners | 2,163 Kb |
I Am Left logo as a scalable canvas | 2,240 Kb |
The Ultimate Flexbox Cheat Sheet | 7,954 Kb |
Disable JavaScript execution from console | 2,534 Kb |
Optical illusion - Motion Binding | 3,875 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 |
STIKHOI | Denmch | 7,122 Kb |
Getting Started | Viblast | 1,500 Kb |
Pericles mi loro... | Judag | 4,125 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Vanilla modal window | Jasonhowmans | 3,554 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 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!