Giter Club home page Giter Club logo

elastislide's Introduction

Elastislide

Elastislide is a responsive image carousel that will adapt fluidly in a layout. It is a jQuery plugin that can be laid out horizontally or vertically with a pre-defined minimum number of shown images

article on Codrops

demo

Licensed under the MIT License

elastislide's People

Contributors

adnen-chouibi avatar berezuev avatar botelho avatar efemero avatar horstvanbommel avatar jorgepinon avatar wenzhixin 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elastislide's Issues

It doesn't work with requirejs

I already made a shim config specifying the dependencies for jquery and jquery++ but still doesn't work

requirejs.config({
paths: {
jquery: 'libs/jquery',
jquerymobile: 'libs/jquery-mobile/jquery.mobile',
underscore: 'libs/underscore',
jquerypp: 'libs/jquerypp',
elastislide: '../js/elastislide',
app: '../js/app',
model: '../js/app/model',
view: '../js/app/view',
controller: '../js/app/controller',

    shim: {
        'elastislide': {
            deps: ['jquery', 'jquerypp']
        }
    }
}

});

Preview image not changed in Native IE8

Although Elastislide works well in the developer tools version of IE8, native IE8 is not so friendly, and the preview image of example 4 never changes when clicking on one of the thumbnail images. Instead, the link is followed to /#. This is even the case on your own hosted example: http://tympanus.net/Development/Elastislide/index4.html

I realize that at this point it's very hard to get ahold of a native IE8 browser to play with, but you really cannot claim that Elastislide works in IE8, or at least example 4 doesn't. I haven't tried the other examples because my current project calls for work done like example 4.

If I can find a solution I'll be sure to post back, but I'm hoping you can provide some help, as I'm not the best at debugging javascript, and you would know your plugin best.

Problem Cached images

First I would like to thank you for the job you done.
But, I got some problem with elastislide.js..
When my browser cache is empty (for chrome,firefox and safari), and all of my website is loading, the elastislide is working fine and show my items.
However, when I reload the page, the items are cached, they doesn't appears.
They are loaded, but max-height and height are set to 0px.

Thanks in advance for the help.
Benjamin.

At mixed Images Landscape/Portrait the Slide is to height

Hi,
at first your Slider it's a great Work.

Is there a Solution for mixed Images in a Slieder?
If i have images in landscape and portrait in the slider, the height of the Slider is oriented at the portrait images height.

Any way to fix this. Maybe crop the portrait images or so?

best regards an sorry for my english

Change transition effect ?

Hello there,

thanks for this nice plugin, i need to change the transition effect to a slide effect.

How can i change this ?

Thanks.

Includes Required?

Most plugins include some information in their README... I cannot find what I am looking for anywhere; I need to know what exactly is required to use this plugin (as far as includes).

Do I only need the following?:

  • elastislide.css
  • jquery.elastislide.js

Or do I need a little more?:

  • elastislide.css
  • jquery.elastislide.js
  • modernizr.custom.17475.js

Or all of the following?:

  • elastislide.css
  • jquery.elastislide.js
  • modernizr.custom.17475.js
  • jquerypp.custom.js

I already have Modernizr included, so I am sure I do not need to include that file, but as for the others that come with this repo, there is little to no mention of the required includes. I could imagine needing to include a couple of the images, as well as this _jquerypp.custom.js_ for swipe support...

Can anyone shed some light on this for me?

onClick inconsistent behavior

$( '#folderCarousel' ).elastislide({
                onReady : function() { 
                    console.log('elastislide onReady');
                },
                onClick : function(el, position, evt){
                    console.log('elastislide onClick');
                }
            });

There are times when onClick never works.

bug - Cannot read property

Cannot read property 'prefixed' of undefined
ln: 227

call:

<script>
 $.noConflict();
 jQuery(document).ready(function($) {
   $('.carousel').elastislide();
 });
</script>

Issue with SetCurrent, undefined is not a function

I have a Elastislide setup on my site with 10-15 thumbnails. The slider works great, everything is right where I want it, but I cannot get a function to work.

Here is what I am trying to do:

spThumbSlider = $('#carousel').show().elastislide({
    orientation : 'vertical',
    minItems : 5, 
    onClick : function( $item ) {
        spThumbSlider.setCurrent($item.index());
    }
}); 

Whenever I do that, I receive a console error that undefined is not a function. I've tried a few of the other functions, same issue.

I have other images on the page that call a click on the carousel thumbnail when hovered. That part works great. The script finds the image in the thumbnails, sets it to active, and "clicks" it. I just need the slider to slide to the image.

What am I doing wrong?

Change <li> data but the slide not redraw.

I change the <li> data.
At begin, the <ul> is
<ul id="carousel" class="elastislide-list">
<li><a href="#"><img src="images/small/1.jpg" alt="image01" /></a></li>
<li><a href="#"><img src="images/small/2.jpg" alt="image02" /></a></li>
<li><a href="#"><img src="images/small/3.jpg" alt="image03" /></a></li>
<li><a href="#"><img src="images/small/4.jpg" alt="image04" /></a></li>
</ul>
when click some button, i change the <li> as bellow
<ul id="carousel" class="elastislide-list">
<li><a href="#"><img src="images/small/1_big.jpg" alt="image01" /></a></li>
<li><a href="#"><img src="images/small/2_big.jpg" alt="image02" /></a></li>
<li><a href="#"><img src="images/small/3_smal.jpg" alt="image03" /></a></li>
<li><a href="#"><img src="images/small/4_smal.jpg" alt="image04" /></a></li>
</ul>

How should i do?

Demo 4 not working in Chrome upon refresh

I'm experiencing a strange issue.

When i first load a page carousel is working fine. But when I refresh the page, if I click on a thumbnail, full image never changes.
This happens in my site where there are some other JS files. (It's a Drupal 7 site to be exact).

It was a strange issue, so I checked the files from the package and they worked as expected.

But then, I went to the demo page (http://tympanus.net/Development/Elastislide/index4.html) and there I'm encountering the same issue.

I'm using Google Chrome Version 33.0.1750.152 on Linux Ubutnu 13.10
(It's working as expected on Firefox)

Need loader for gallery images

hi,

i am using this elastislide in my personal project. I have loaded so many images in slider but i am facing time lagging issue in loading.

is there any way to add loader image for this slider

thank you.

How do i destroy elastislide?

I have a carousel on my html, in js i call the elastslide everytime a dialog open, it creates a new carousel. But when i close this dialog, the carousel have to be destroyed, and i don't now how to do! Can anyone help me?

Swipe on mobile devices doesn't work?

I can't seem to get the swipe function, mentioned in the codrops article, to work on my mobile (Nexus 4). None of the demos react to a swipe, nor does my own install.

Any pointers, or is this a known bug?

Scrolls to top of page

Hi,

I am using the elastislide image gallery and the gallery is at the bottom of the webpage and each time I click the next image it jumps to top of the page after the image is loaded. Is there anyway to stop that ?

Issue with elastislide and Firefox or Safari

I have made a responsive website with bootstrap and I've used Elastislide gallery but I have an issue in Firefox and Safari. The thumbnails are not presented in the gallery, it only shows the first picture. Sometimes when I refresh the page it shows the thumbs but when I click them it sends to the top of the page. You can see the page here:

http://zunatur.com/lang/en/index.html

Anyone with the same issue?! Any help is aprecciated.
captura de ecra 2015-07-1 as 11 59 51

Problem with Multiple Instances of Elastislide on a Page

I have been using Elastislider for my product pages and it works beautifully. However, as soon as I attempt to use Elastislider on a "listing page", something goes odd. When trying to use more than one instance of it on a page, Elastislide appears to be generating extra XHTML markup. As compared to how it behaves on a single page instance, Elastislide creates many nested divs when I use it multiple times.

elastislidenesteddivproblem-uzmaaxyb

Note that, in my case, I am trying to integrate Elastislide into Wordpress. This may or may not be the source of the problem or the cause of why Elastislide is nesting in this manner. So, just in case, I have already issued a question on WP forums:

http://wordpress.org/support/topic/archive-listing-nested-duplicate-divs-elastislider

Apologies for the external link but I could not figure out how to parse the code (seen in the wordpress forum link) here on Github. There is also a duplicate thread about this seen here, but it was more than 8 months old: #5)

[enhancement] Add missing bower.json.

Hey, maintainer(s) of codrops/Elastislide!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library codrops/Elastislide is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "codrops/Elastislide",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

How to support Retina graphics?

I'd like to support high resolution images for iOS and Mac. I tried to use Foresight in conjunction with Elastislide:

http://www.cdnconnect.com/docs/foresightjs

This is how I tried to load the images:

<li><a href="#"><img data-src="/images/gallery1.jpg" alt="" data-width="100" data-height="100" class="fs-img"><noscript><img src="/images/gallery1.jpg" alt="" width="100" height="100"></noscript></a></li>

Unfortunately, the images aren't loaded. I assume there's a conflict in the image loading code. If I change the HTML to just the plain img tag, Elastislide works correctly. Outside of Elastislide Foresight works correctly.

Any other solution than Foresight is welcome too (although I like Foresight because it avoids fetching the low resolution images first).

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.