GithubHelp home page GithubHelp logo

preee / excolo-slider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikolajdl/excolo-slider

0.0 2.0 0.0 2.92 MB

A neat jquery slider

Home Page: http://excolo.github.io/Excolo-Slider/

License: MIT License

CSS 12.38% JavaScript 87.62%

excolo-slider's Introduction

Excolo Slider

A simple jquery sliding plugin, supporting responsive design, keyboard and touch navigation.

Under development. I'll post future features and enhancements, in the issue tracker.

Should you find bugs or want to suggest a feature, feel free to post it in an issue. :-)

Features:

  • AutoPlay Slideshow
  • Mouse slide navigation
  • Prev/next button navigation
  • HTML5 data-attribute captions
  • Pagination
  • Repeat when last slide is reached
  • Play the slideshow backwards
  • Auto adjust size initially and on browser resize, for responsive designs
  • Touch enabled (limited to a few browsers)

Most of these features can be configured and turned off, when setting up the slider.

Installation

Installation can be done using NuGet Package Manager, either by using the console, as seen below, or by searching for the package in the Visual Studio package explorer:

PM> Install-Package excolo-slider

Then in the header of your website, you insert the references to jquery and the slider plugin:

<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/jquery.excoloSlider.min.js"></script>
<link href="Content/jquery.excoloSlider.css" rel="stylesheet">

The HTML code for the slides is simply a div container, with any child objects being the slides:

<div id="slider">
  <img src="images/image1.jpg" />
  <img src="images/image2.jpg" />
  <img src="images/image3.jpg" />
  <img src="images/image4.jpg" 
    data-plugin-slide-caption="I am a caption <b>and I can contain HTML.</b>" />
  <img src="images/image5.jpg" />
  <img src="images/image6.jpg" />
  <img src="images/image7.jpg" />
  <div>
    <h2>This is the last slide</h2>
    <img style="width: 50%: float: right;" src="images/image8.jpg" />
  </div>
</div>

Notice how you can use the HTML5 data-attribute data-plugin-slide-caption to create a caption text for each slide. These captions allow HTML and can be fully styled using css.

Then to initialize the slider plugin with default settings you insert the script:

$(function () {
    $("#slider").excoloSlider();
});

For installation without NuGet see our GitHub page

Configuration

Configuration can be seen on our GitHub page

Examples

Examples can be seen on our GitHub page

Relative Project

License

Free for both personal and commercial use.

Copyright (c) 2013 Nikolaj Dam Larsen. Released under the MIT license.

excolo-slider's People

Contributors

nikolajdl avatar wuliupo avatar preee 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.