Giter VIP home page Giter VIP logo

web-ticker's Introduction

#Web Ticker v1.3

##How to use

$('#webTicker').webTicker(settings);

//where webTicker is the id of the container you would like the ticker to run upon above function starts ticker rotating

$('#webTicker').webTicker('stop');

//stop the ticker from moving

$('#webTicker').webTicker('cont');

//continue ticker movement from where it was before (same settings as previously will be used)

Settings - Optional

The settings at this point in time only include the speed of the ticker which is set by default to 0.05 as well as the direction of the ticker.

Speed changes are relatively undested and setting it too fast might cause unexpected results.

Also note that speed values in the negative domain will not change the direction of flow but rather make the ticker not work. A separate value is used for direction settings and this can be either 1 for right to left movement or -1 for left to right movement.

Please not that in any case the first item will be the first that goes out of screen.

travelocity: 0.05 direction: 1

##CSS Requirements:

.tickercontainer

//width of the original container in which the ticker appears

float: left if direction is 1 otherwise float right

.tickercontainer li

//width of the original container in which the ticker appears

float: left if direction is 1 otherwise float right

.tickercontainer .mask

//can be used to achieve padding within the container

NB: if running multiple tickers it is suggested that you use the id rather then the class name should they have different directions.

Optional

.tickeroverlay-left , .tickeroverlay-right //can both be used to achieve a fade-in and fade-out effect

web-ticker's People

Contributors

jonmifsud avatar

Watchers

James Cloos 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.