Giter VIP home page Giter VIP logo

jaslider's Introduction

Jaslider

#English redaction

Jaslider.js is an slider plugin for jquery , this plugin can have an gallery with thumbnails or not to animate the images.

Tested with: IE8+ , Chrome 29.0.1547.76 and Mozillla Firefox; Using jquery-1.9

How work?

1- Include jquery file and plugin Jaslider.js and css stylesheet called "Jastyles.css"

2- Create an div with id E.g : <div id="gallery"></div>

3- Create an elements list on gallery div and put the images on <li><img src="images_path..." /></li>

4- Then instantiate the plugin with javascript

$("#gallery").JaGallery( {
         height: 300, 
         width: 500,
         sliderTime: 1200
});

5- Ready !

For use of thumbnails

1- Set at "true" the element thumbs

 $("#gallery").JaGallery( { thumbs:true } );

2 - Create a div with id = "thumbnails" and add a list <ul> the same way we did before, for example:

<div id="thumbnails">
  <ul>
    <li><img src="images/1.jpg" /></li>
    <li><img src="images/2.jpg" /></li>
    <li><img src="images/3.jpeg" /></li>
    <li><img src="images/4.jpeg" /></li>
    <li><img src="images/5.jpg" /></li>
    <li><img src="images/6.jpg" /></li>

  </ul>
</div>

3- Ready!

Examples Folder:

There are two .html files with examples.

example1.html (Simple slider without thumbnails images)

example2.html (Slider Gallery with thumbnails images)

=========

Redacción en Español

Jaslider.js es un plugin para jQuery slider, este plugin puede tener una galería con imágenes en miniatura o no animar las imágenes.

Testeado en: IE8, Chrome 29.0.1547.76 y Mozilla Firefox; Usando jquery-1.9

¿Cómo funciona?

1 - Incluir archivo jquery y Jaslider.js plugin y hoja de estilo css llamado "Jastyles.css"

2 - Crear un div con id Ejemplo:

<div id="gallery"></div>

3 - Crear una lista de elementos en la galería div y poner las imágenes en los elementos <li><img src = "images_path ..." /></li>

4 - Luego, instanciar el plugin dentro del document ready asi:

$ ("#gallery").JaGallery({
         height: 300,
         width: 500,
         sliderTime: 1200
});

5 - Listo!

Para el uso de imágenes en miniatura

1 - Crear y setear en "true" el elemento "thumbs" del objeto

$("#galería").JaGallery({ thumbs: true });

2 - Crear un div con id = "thumbnails" y añadirle una lista <ul> de la misma forma que hicimos antes Por ejemplo:

<div id="thumbnails">
  <ul>
    <li><img src="images/1.jpg" /></li>
    <li><img src="images/2.jpg" /></li>
    <li><img src="images/3.jpeg" /></li>
    <li><img src="images/4.jpeg" /></li>
    <li><img src="images/5.jpg" /></li>
    <li><img src="images/6.jpg" /></li>

  </ul>
</div>

3 - Listo!

Carpeta Ejemplos:

Hay 2 archivos .HTML con ejemplos.

example1.html (slider simple sin imágenes miniatura)

example2.html (galería deslizante con miniaturas de imágenes)

==========

#Parameters / Parámetros

width // (Required) Width of slider (Integer)
height // (Required) Height of the Slider (Integer)
thumbs // Set at true to use the thumbnails (Boolean)
infinite // Set at true to repeat slider effect (Boolean)
easing // Set any value of the plugin to run the slider with effects (String)
sliderTime // (Required) Set value to time images transitions (Integer)

jaslider's People

Contributors

jcdesignweb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.