odin-simple-image-slider

1.0.2 • Public • Published

odin-simple-image-slider

Simple image slider - slides through images

My third npm package with the-odin-project

usage

install: npm i odin-simple-image-slider

import in your project:

import imageSlider from "odin-simple-image-slider"

the default style is at ./node_modules/odin-simple-image-slider/style.css and is imported at index.js in the same location

syntax

imageSlider(...images)

example

import imageSlider from "./simple-image-slider/index.js";
import Grass from './grass.jpg';
import Snow from './snow.jpg';
import Pc from './pc.jpg';
import Desert from './desert.jpg';


const app = document.querySelector('#app');

app.append(imageSlider(Grass, Snow, Pc, Desert));

it returns a dom node that you can append using append/appendChild

license

ISC

Package Sidebar

Install

npm i odin-simple-image-slider

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

5.11 kB

Total Files

4

Last publish

Collaborators

  • netman134