Giter Club home page Giter Club logo

harper-banner's Introduction

Harper Banner

Aren't there enough scrolling and fading banners available. Well, yes of course. Thing is, after trying out a few I found some were rather clunky or just a bit over done. Was kinda looking for something insanely simple where I could use a CSS background image instead of your standard HTML image as well as add customizable text containers per slide. I couldn't find what I was looking for so I decided to try and build my own and it is turning out to be a rather fun project.

Features / Abilities

  1. Super small and customizable
  2. Current background image transition is only a fade effect.
  3. Background images are resizable based on browser size.
  4. Ability to set duration timer based on object setting or data attribute.
  5. Clickable controls to select specific slide (still in development)

To Do's

  1. Finish up controls to select specific slide.
  2. Ability to toggle slide controls.
  3. Add next and previous slide controls.
  4. Ability to toggle next and previous controls.
  5. Define additional transition effects.

Requirements

Well, jQuery of course. That should be about it, really.

Installation

Un-Minified

<link type="text/css" href="dist/harper-banner.css" rel="stylesheet" />
<script type="text/javascript" src="dist/harper-banner.js"></script>

Or of course...

Minified

<link type="text/css" href="dist/harper-banner.min.css" rel="stylesheet" />
<script type="text/javascript" src="dist/harper-banner.min.js"></script>

Defaults / Options

$(function () {
    $('.banner').harper({
        controls: true,   // {boolean} true | false
        debug: false,     // {boolean} true | false
        duration: 10000,  // {int}
        next: true,       // {boolean} true | false
        previous: true,   // {boolean} true | false
        effect: 'fade'    // {string} fade | more to come
    });
});

A Few Examples

Below are a few examples of how to use the Harper Banner plugin from default, plain jane to full featured.

Default Implementation

$(function () {
    $('.banner').harper();
});

Duration

$(function () {
    $('.banner').harper({
        duration: 8000 //default is 10000
    });
});

harper-banner's People

Watchers

 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.