An open API service indexing awesome lists of open source software.

https://github.com/aichbauer/img_slider

a simple img_slider created with jquery, ready to use in every project
https://github.com/aichbauer/img_slider

Last synced: 10 months ago
JSON representation

a simple img_slider created with jquery, ready to use in every project

Awesome Lists containing this project

README

          

#img_slider

a simple img_fader created with jquery

AUTHOR: AICHBAUER LUKAS

email: rudolfson.junior@gmail.com

***

## how to use

***

import the css and the js file to your html file.

don't forget to import jQuery in your project... import it in front of the img_slider.js



create a new div in your html file


give it the id slider

now import pictures on your project and link the paths in the var images array on the img_slider.js

example:

var images = ["http://localhost/tuts/img_slider_tut/img/bg1.jpg","http://localhost/tuts/img_slider_tut/img/bg2.jpg]

changing height and width of the slider in the css file and the js file

css

sliderWindow
{
position: relative;
width: CHANGE ME;
height: CHANGE ME;
margin: 0 auto;
padding: 0;
overflow: hidden;
border: solid grey;
}

js

var slideWidth = CHANGE ME;