New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

float-block

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

float-block

It makes block stick to top of the page.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
17
-26.09%
Maintainers
1
Weekly downloads
 
Created
Source

float-block

It makes block stick to top of the page.

To use it, block must corresponds CSS rules:

  • position: static;
  • margin: 0;
  • display: block;
  • width: auto;
  • float: none;

Options

Options list:

NameDescriptionTypeDefault Value
classActiveIndicates class name that is added to block when it become active (this class name stays on sticky block even it reach bottom edge of the container).stringundefined
classStickyIndicates class name that is added to block when it sticks (this class name stays on sticky block only when it become sticky).stringundefined
relativeIndicates class name of parent block. By default block sticks to viewport top and bottom edges.stringundefined
topIndicates distance between viewport top edge and block top edge.number0
bottomIndicates distance between viewport bottom edge and block bottom edge.number0
indentIndicates distance between block bottom edge and parent block bottom edge.number0

Browser Support

All modern browsers and IE9+

Examples

Demo1 - without any parameters.

Demo2 - classActive parameter is setted.

Demo3 - top parameter is setted.

Demo4 - relative parameter is setted.

Demo5 - bottom parameter is setted.

Demo6 - classSticky parameter is setted.

FAQs

Package last updated on 09 Aug 2019

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