0.1.3 • Published 2 years ago

sticky-card v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Sticky Card Component

Sticky Card is a web component that creates a responsive and adaptable sticky card layout. It utilizes the Lit library and is easy to integrate into existing web applications.

Features

  • Easy integration into existing projects
  • Responsive design (todo)
  • Customizable text and image content
  • Support for Light DOM and Shadow DOM by using "use-light-dom" attribute

Installation

To use the Sticky Card component in your project, install it via npm:

npm install --save sticky-card

Usage

Import the Sticky Card component and register it as a custom element in your project:

import 'sticky-card';

or add script to your html markup before </body>

<script type="module" crossorigin src="/sticky-card.js"></script>

Use the custom sticky-card element in your HTML markup:

<sticky-card 
use-light-dom
image-right 
image-src="path/to/image" 
image-alt="Alternative Text" 
text-items="[
      { "title": "Title 1", "text": "Text 1" },
      { "title": "Title 2", "text": "Text 2" }
    ]"
></sticky-card>

API

Properties:

License

This project is licensed under the MIT License. For more information, please see the LICENSE file.

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago