Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
1
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

javascript

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.