Skip to content

moimigueldev/Presentation-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Presentation-js

Carousel without the use of JQuery

==================================================================

Installation

  1. Clone the repo
  2. run npm install to install dependecies

requirements

please provide the style and script tag to your application

    <link rel="stylesheet" href="build/styles/main.css">
    <script src="build/bundle.js"></script>

Usage

To be able to run Presentation-js you will need to provide a container with an attribute of presentation-js The container can only have children of divs with a background-image/text provided and height The divs will take the entire width of it's containers You will need to provide a data-slide attribute the the children of the container. example can be found on the index.html page to initialize the container. You will need to provide presentation.start() function

presentation.start()

Configuration

This function takes in one optional parameter. The parameter is the object to which you can provide presentation-js with configurations to the carousel.

presentation.start('presentation', {
  timer: 6000,
  arrows: true,
  autoSlide: true,
  dots: false,
  dotsSize: '13px',
  activeDotColor: 'white',
  inactiveDotColor: 'gray',
  arrowSize: '25px',
  arrowColor: 'beige'
  })

these are the current default parameters that presentation-js will run off of unless changed by the user itself. Keep in mind that when changing parameter, the value types need to be the same as the defaults or else you will see a type error from presentation-js

Running the applcation

To run the application you will need to run

 npm start

this will watch for any changes to files and run the babel and rollup

you will need to open the index.html file via folder explorer to view the application

About

Carousel without the use of JQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published