Giter Site home page Giter Site logo

zarkara / vimeo-carousel-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pinceladasdaweb/vimeo-carousel-gallery

0.0 2.0 0.0 147 KB

Show videos from Vimeo into a chic gallery with jQuery

Home Page: http://www.pinceladasdaweb.com.br/blog/uploads/vimeo-carousel-gallery/

JavaScript 61.74% CSS 25.74% HTML 12.52%

vimeo-carousel-gallery's Introduction

Show videos from Vimeo into a chic gallery with jQuery. Unlike from Youtube, Vimeo does not allow you to create custom playlists to display your videos. Thinking about it I created a plugin that when passing a list of urls videos from Vimeo, you create a carousel with information coming from Vimeo, and videos can be seen through the prominently on the page.

##Usage

  1. Paste right before your page's closing </body> tag
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/lib.js"></script>
  1. From within a script tag or a JS file
var data = {
    "main" : "http://vimeo.com/70161501",
    "videos" : [
        { "url" : "https://vimeo.com/71495477" },
        { "url" : "https://vimeo.com/70775770" },
        { "url" : "https://vimeo.com/71238762" },
        { "url" : "https://vimeo.com/70388552" },
        { "url" : "https://vimeo.com/67890000" },
        { "url" : "https://vimeo.com/70777838" },
        { "url" : "https://vimeo.com/38931673" },
        { "url" : "https://vimeo.com/70286906" }
    ]
}

Vimeo.init({
    container: $('.gallery') //DOM element to append the gallery
});

Pass a list of videos to date object where 'main' is the main video and 'videos' are the videos that will in carousel.

The script accepts the Vimeo URL's in the following formats:

"https://vimeo.com/11111111",
"http://vimeo.com/11111111",
"https://www.vimeo.com/11111111",
"http://www.vimeo.com/11111111",
"https://vimeo.com/channels/11111111",
"http://vimeo.com/channels/11111111",
"https://vimeo.com/groups/name/videos/11111111",
"http://vimeo.com/groups/name/videos/11111111",
"https://vimeo.com/album/2222222/video/11111111",
"http://vimeo.com/album/2222222/video/11111111",
"https://vimeo.com/11111111?param=test",
"http://vimeo.com/11111111?param=test"

vimeo-carousel-gallery's People

Contributors

pinceladasdaweb avatar zarkara 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.