Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanillasticky

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanillasticky

Fix elements to the viewport when they scroll past a position. No jQuery!

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

VanillaSticky

Fix elements to the viewport when they scroll past a position. No jQuery, fully agnostic!

##Installing

Bower

$ bower install vanillasticky

NPM

$ npm install vanillasticky

var VanillaSticky = require('vanillasticky');

##Usage

Adds a dom node to the list of nodes that will get fixed when they reach that vertical offset with the top of the screen.

VanillaSticky.attach(DOMNode, offset);

Removea dom node from the watched nodes

VanillaSticky.detach(DOMNode);

Keywords

FAQs

Package last updated on 17 Jul 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc