Giter VIP home page Giter VIP logo

allofthelights.js's Introduction

Allofthelights.js

Allofthelights.js is a jQuery plugin to turn off the light and enjoy your videos, try it !

http://www.megaptery.com/allofthelights/ - Pierre VION

Allofthelights

Features

  • Multiple videos iframe
  • Responsive video
  • Support of lot of players
  • Switch button entirely customizable
  • Lightweight (3.4Ko minified)
  • Callback functions
  • Control animation speed
  • Custom background (color, opacity)
  • Modern browsers support
  • Requires jQuery 1.7+

Examples

Compatibility

  • Chrome
  • Firefox
  • Opera
  • Safari
  • IE9+

Options

color: '#000000'

Defines the background color.

opacity: '0.9'

Defines the background opacity.

z_index: '10'

Defines the background z-index.

switch_selector: 'switch'

Defines the switch button CSS id or class.

delay_turn_on: 400

Defines animation time to turn on the light.

delay_turn_off: 400

Defines animation time to turn off the light.

scrolling: true

Allows disable scrolling when the light is on if value is false.

is_responsive: true

Enables responsive video.

custom_player: null

Allows to apply responsive on a custom player. Specify your video vendor selector. Only available when is_responsive = true.

callback_turn_on: function(){}

Callback function when the light goes on.

callback_turn_off: function(){}

Callback function when the light goes off.

allofthelights.js's People

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.