![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
An on-demand sticky header.
Headhesive.js creates an on-demand sticky header. Specify when you want your header to become fixed and the rest is magic. View demo.
Install with npm:
npm install headhesive
Install with Bower:
bower install headhesive (or bower install headhesive.js)
Headhesive.js is a standalone JavaScript plugin with no dependencies. Include the headhesive.min.js
(from the dist/
folder) in the footer of your page and initialise it:
// Create a new instance of Headhesive
var header = new Headhesive('.header');
Headhesive.js doesn't inject any CSS styles so you can use your own to completely control how your sticky element behaves. An example is provided in the demo.
Customise how Headhesive.js works by passing in custom options.
// Options
var options = {
offset: 500
}
// Create a new instance of Headhesive.js and pass in some options
var header = new Headhesive('.header', options);
{
// Scroll offset. Accepts Number or "String" (for class/ID)
offset: 300, // OR — offset: '.classToActivateAt',
// If using a DOM element, we can choose which side to use as offset (top|bottom)
offsetSide: 'top',
// Custom classes
classes: {
// Cloned elem class
clone: 'headhesive',
// Stick class
stick: 'headhesive--stick',
// Unstick class
unstick: 'headhesive--unstick'
},
// Throttle scroll event to fire every 250ms to improve performace
throttle: 250,
// Callbacks
onInit: function () {},
onStick: function () {},
onUnstick: function () {},
onDestroy: function () {},
}
To destroy an instance of Headhesive.js, you can call the destroy method:
header.destroy();
IE9+ and modern browsers.
Headesive.js is licensed under the MIT License.
There is a demo available in the demo folder and online at http://markgoodyear.com/labs/headhesive/.
FAQs
An on-demand sticky header
The npm package headhesive receives a total of 18 weekly downloads. As such, headhesive popularity was classified as not popular.
We found that headhesive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.