0.0.4 • Published 11 months ago

wc-affix v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

WC Affix

The wc-affix is a high performance flow layout component written using web-component

It can support running in various frameworks, such as React Vue

🌈 Demo

⚙️ Installation

  • npm

npm i wc-affix
  • scripts

<script src="https://cdn.jsdelivr.net/npm/wc-affix/dist/index.iife.js"></script>

🦄 Example

🐔 Use in VanillaJS

<script src="https://cdn.jsdelivr.net/npm/wc-affix/dist/index.iife.js"></script>

<h1>wc-affix</h1>

<wc-affix active-style="box-shadow: 0 0 10px #80808080">
  <div>01</div>
</wc-affix>

📄 Props

NameTypeDefaultDescription
offsetnumber0Number of columns
active-classstringClass displayed during activation
active-stylestringStyle displayed during activation
targetstringSpecifies the scrollable area DOM node

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

👏 Contributing

If you have any questions or requests or want to contribute, please write the issue or give me a Pull Request freely.

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago