Socket
Socket
Sign inDemoInstall

@times-components/sticky

Package Overview
Dependencies
88
Maintainers
3
Versions
233
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @times-components/sticky

Attach children to viewport on scroll (web only)


Version published
Maintainers
3
Created

Readme

Source

Sticky

Attach children to viewport on scroll (web only)

This also supports sticking relative to a specified container using the provided StickyProvider component, which renders a chosen element (defaults to a div) to calculate the required offset. This can be useful if you wish to stick the component below another fixed element.

The package also provides a number of selectors for use with styled components for selectively applying styles in certain conditions.

It also provides computeProgressStyles, which is useful if you wish to to animate a transition between your non-sticky and sticky state as you scroll through the original component position.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

Testing can be done on each platform individually

yarn test:web

Or the tests for all platforms can be run

yarn test:all

Visit the official

Future

Keywords

FAQs

Last updated on 08 May 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc