@tyankatsu0105/css-houdini-stripe
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

CSS Houdini Stripe

Usage

npm install @tyankatsu0105/css-houdini-stripe
<style>
  .text {
    color: #333;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
  }

  .text:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  @supports (background: paint(stripe)) {
    .text:before {
      --houdini-stripe-line-number: 10;
      --houdini-stripe-line-color: #fff;
      --houdini-stripe-line-max-width: 3;

      background-image: paint(stripe);
    }
  }
</style>

<body>
  <p class="text">
    Stripe Text
  </p>

  <script>
    window.CSS.paintWorklet.addModule("https://unpkg.com/@tyankatsu0105/css-houdini-ripple/worklet.js");
  </script>

  <!-- Option -->
  <script src="https://unpkg.com/@tyankatsu0105/css-houdini-stripe/properties.js"></script>

</body>
</html>

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tyankatsu0105/css-houdini-stripe

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

4.56 kB

Total Files

8

Last publish

Collaborators

  • tyankatsu0105