Socket
Socket
Sign inDemoInstall

@coffeekraken/s-scroll-component

Package Overview
Dependencies
641
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-scroll-component

Simple web component to create elements that, on click, scroll to a certain element in the DOM, or at top or bottom...


Version published
Weekly downloads
277
decreased by-24.73%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

{{#> layout-readme }}

SScrollComponent

This package expose a simple SScrollComponent custom element that you can define and use in your pages easily.

Features

  • Framework agnostic. Simply webcomponent.
  • Fully customizable
  • Support top, bottom and css selector to scroll to any element in the page
  • Responsive props see more
  • And more...

Usage

First, simply import and define the component in your js/ts file:

import { define } from '@coffeekraken/s-scroll-component';
define();

Make use of it in your pages:

<s-scroll class="s-bg:accent s-p:30 s-radius s-tc:accent-foreground" to="top">
    <i class="s-icon:angle-up"></i>
</s-scroll>

Attributes

{{> interface namespace='@coffeekraken.s-scroll-component.js.interface.SScrollComponentInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

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