Giter VIP home page Giter VIP logo

kenburns's People

Contributors

toymakerlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kenburns's Issues

Prevent looping?

How would you go about preventing this from looping? So if only two images -- display first image, display second image and then stop on the second image? Do not loop to image 1.

Animation bug with more than one slideshow on a page

I tried putting three of the slideshows on a single page. The first slideshow works as expected but the other two go black after the first slide and after some time, the two animate to the next slide. The timing of the other two slideshows is erratic.

Random Slide?

I'm just wondering how easy or difficult it would be to put in a random slide feature.

I found this shuffle array function, but not sure if it would fit

function shuffle(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;

  // While there remain elements to shuffle...
  while (0 !== currentIndex) {

    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;

    // And swap it with the current element.
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }

  return array;
}

Bug

Hello! Congratulations for making this amazing plugin.
I've noticed that in some moments the animation top to bottom of the plugin doesn't work and the image appears static.
I couldn't identify where or when the problem is happening. It's easy to see when the scale is equal to 1.

Issues with new versions of jQuery

I tried to use the plugin with newer versions of jQuery (in my case: 3.1.1) required by WP, but ran into some issues. There were all easy to, fix though:

  1. The load(function() {})) method on line 125 needs to be replaced with on('load', function(){}).
  2. The size() method on line 404 needs to be replaced with the equivalent length property.

Then it started working just fine.

Method to implement pause

Is there a way we can pause animation? Say pausing animation when mouse hovers over the Kenburn area.

I tried using getComputedStyle() but that didn't turn out to work very well.

Thanks,
Gaurav

animation from center,

Hi, i really appriciate your work and contribution ,I see animation is random i want to align from center and not from top or bottom or left or right only from center ,please suggest me how to do that.

Typo in README

Kenburns.js is a lightweight and flexible Jquery gallery plugin that loads a list of images and transitions them using a pan-and-zoom, [Ken Burns](http://en.wikipedia.org/wiki/KenBurns_effect)_ style effect.

The link is weirdly formated

Width is reset with height

Line 129 is currently:

imagesObj["image"+index].width = $(this).height();

Surely this should be setting the height?

dynamically change given images

i tried something like this

function newSlide(imgs)
{
var titles = [];

$(document).ready(function()
{
    $('#kenburns-slideshow').Kenburns(
    {
        images: imgs,
            scale:1,
            duration:8000,
            fadeSpeed:1200,
            ease3d:'cubic-bezier(0.445, 0.050, 0.550, 0.950)',
        });
});

}

but it only works for the first time, if i resend new images nothing happens...

Dispose and/or refresh

Love the plugin.

I was wondering if you might recommend a way to dispose it, or otherwise refresh the image array.

If, for example, I apply the plugin to an element, remove the element, add the element back, and apply the plugin again, I get some very strange behavior.

Not working on url transfer on IE8

Hello.

I found that, if you see the page with this plugin from other page,
initilizing functions are not working on IE8.

Im sorry for my poor english.

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.