Gathering detailed insights and metrics for css-houdini-bullet
Gathering detailed insights and metrics for css-houdini-bullet
Gathering detailed insights and metrics for css-houdini-bullet
Gathering detailed insights and metrics for css-houdini-bullet
npm install css-houdini-bullet
Typescript
Module System
Node Version
NPM Version
JavaScript (81.43%)
HTML (18.57%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jan 16, 2021
Latest Version
0.3.0
Package Id
css-houdini-bullet@0.3.0
Unpacked Size
9.49 kB
Size
3.36 kB
File Count
5
NPM Version
6.14.9
Node Version
14.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A CSS Houdini Worklet to paint "bullet holes".
Using CDN is the easiest way to add the library:
1if ("paintWorklet" in CSS) { 2 CSS.paintWorklet.addModule( 3 "https://unpkg.com/css-houdini-bullet/public/worklet.js" 4 ); 5}
To add support for all moder browsers, you can load the worklet with css-paint-polyfill fallback.
1<script> 2 (async function () { 3 if (CSS["paintWorklet"] === undefined) 4 await import("https://unpkg.com/css-paint-polyfill"); 5 6 CSS.paintWorklet.addModule( 7 "https://unpkg.com/css-houdini-bullet/public/worklet.js" 8 ); 9 })(); 10</script>
To use the Bullet worklet you need to define some custom properties with values and add the value paint(bullet)
on the background
property.
1.element { 2 --bullet-bg: #3112c9, #12c99b; 3 --bullet-items: 3; 4 --bullet-type: 5; 5 --bullet-curve: 0.5; 6 --bullet-size: 10, 25; 7 --bullet-border: 15; 8 background: paint(tesla-coil); 9}
Property | Default | Description |
---|---|---|
--bullet-bg | #1a2a6c | Define the background color of the element, multiple colors can be used #color1, #color2 |
--bullet-items | 10 | Define the number of "holes" |
--bullet-type | 0 | Define the type of "hole" 0 = Circles , 1 = Hearts , n > 2 = Polygons of n points |
--bullet-curve | 0.5 | Define the shorter radius of the Polygons (max value 1) |
--bullet-size | 10 | Define the size of the "hole" |
--bullet-border | 0 | Define the space from the border |
Run it locally!
yarn
yarn start
MIT License
Copyright (c) 2021 Edalgrin
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
102 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More