Coder Social home page Coder Social logo

tzolkin / jquery.slideshowify.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from subchild/jquery.slideshowify.js

0.0 0.0 0.0 7.83 MB

A Ken Burns Effect style slideshow plugin for jQuery. Fills the browser with (cropped and panned) images given a selector.

Home Page: http://www.subchild.com/slideshowify

HTML 7.03% JavaScript 92.97%

jquery.slideshowify.js's Introduction

Slideshowify

jQuery.slideshowify.js is a jQuery plugin for generating a slideshow with a Ken Burns Effect from images that match a selector. Images that don't fit the window proportions exactly (generally the case) are cropped and panned across the screen. This also resembles that Mac screensaver.

Check out the DEMO

As of version 0.9, jQuery.slideshowify supports hardware-accelerated CSS3 transforms, which include panning in all directions as well as zooming in and out (when the image aspect ratio matches that of the window). CSS3 support is provided by the excellent jQuery.transit plugin from Rico Sta. Cruz.

@TODO fix the resizing business (force full screen and prevent resizing || add resize handler to adjust numbers)

To use, do something like this:

$("img").slideshowify();

or:

$.slideshowify({
	dataUrl     : "http://www.gallerama.com/services/gallery/get.php?gid=2107&versions[]=9",
	dataType    : "jsonp",
	randomize   : true,
	aniSpeedMin : 6000,
	aniSpeedMax : 10000,
	filterFn    : function(imgs){ // filter data
		var fixedImgs = [];
		$.each(imgs, function(i, img){
			fixedImgs.push($.extend(img.versions["9"], {id:img.id}));
		});
		return fixedImgs;
	},
	afterFadeIn : function(curImage){
		// do something
	},
	beforeFadeOut : function(curImage){
		// do something else
	}
});

jquery.slideshowify.js's People

Contributors

subchild 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.