1.0.1 • Published 2 years ago

the-carousel-project v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

The Carousel Project

Build Status Coverage Status

The Carousel Project is a simple and lightweight carousel made with just JAVASCRIPT.

Installation

npm install the-carousel-project

Usage

CSS

Use theCarouselProject.min.css file from the dist folder into your project.

JS

import { CarouselInit } from 'the-carousel-project'

CarouselInit();

HTML Syntax

<div class="tcp-carousel">
    <ul class="tcp-carousel__cards">
        <li class="tcp-carousel__card">
            <img class="tcp-carousel__card-img"
                data-header="<< Header >>"
                data-sub-header="<< Sub Header >>"
                src="<< Image >>"
            />
        </li>
    </ul>
</div>

LEGEND for above skeleton :

1. << Header >> - Replace with a string for HEADER
2. << Sub Header >> - Replace with a string for SUB HEADER
3. << Image >> - Replace with an IMAGE url

HTML ( Example )

<div class="tcp-carousel">
      <ul class="tcp-carousel__cards">
        <li class="tcp-carousel__card">
          <img
            class="tcp-carousel__card-img"
            data-header="Russia"
            data-sub-header="Moscow"
            src="https://i2.wp.com/wallur.com/wp-content/uploads/2016/12/russia-background-8.jpg?fit=1920%2C1080"
            alt=""
          />
        </li>
        <li class="tcp-carousel__card">
          <img
            class="tcp-carousel__card-img"
            data-header="India"
            data-sub-header="New Delhi"
            src="https://data.1freewallpapers.com/download/india-monuments.jpg"
            alt=""
          />
        </li>
        <li class="tcp-carousel__card">
          <img
            class="tcp-carousel__card-img"
            data-header="France"
            data-sub-header="Paris"
            src="https://worldoftravel.co/wp-content/uploads/My_World_Paris_59079f6834a4f50d46219cca.jpeg"
            alt=""
          />
        </li>
      </ul>
    </div>

Demo

STACKBLITZ

1.0.1

2 years ago

1.0.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago