Giter Club home page Giter Club logo

swipebox's People

Contributors

alertmybanjos avatar alopes avatar apropos avatar baranga avatar brutaldesign avatar bryant1410 avatar brycemcconnell avatar dheera avatar dmtrmrv avatar dperrymorrow avatar dylanjameswagner avatar elstgav avatar fabtho avatar fangjian0423 avatar gergo85 avatar j-r-t avatar karooolis avatar leberknecht avatar lucasts avatar mariodrengner avatar matthaywardwebdesign avatar micschk avatar oswaldoacauan avatar ppsirius avatar psenger avatar splitbrain avatar stackcoder avatar timgates42 avatar wolfthemes 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  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

swipebox's Issues

Multiple galleries

Sorry for my bad english. I have a problem, in my code i have six galleries and i assigned a different class for each one. The first five working well, but the sixth did not, and I do not know what happens. Note.: My javascript skill is limited. ¿Can you help me?

Swipebox doesn't close

Hi,
I'am using two devices where the swipeboxplugin does not close itself after I'am trigger the swipebox-close button.

-> I have investigated a bit and found out that this is an initial problem because when I'm changing the device orientation everything works fine.

DEVICES:

  1. Samsung Galaxy S 3.6 (Android 2.3.6)
  2. Samsung Galaxy S 4.0 (Android 2.3.6)

Maybe you have a tip how I can solve this issue adhoc ?

Regards
Ingo Fahrentholz

RTL unsupport

Hi

I have a css file that contains the direction: rtl; for the body

but one I install the plugin it don't show the next images, it shows just the first one

and once I remove the direction rtl it work !!

I hope I find a solution for this problem

Thank You !

In Safari on iOS7, the close and prev/next options are hidden by browser controls

When using swipebox on Safari in iOS7, the close and prev/next controls appear at first, but attempting to use them causes the Safari options to appear. This makes it impossible to close the overlay.

I've duplicated the issue on two devices. The simple fix would appear to be moving the buttons to the top bar and/or allowing the overlay to close on tap or pull-down. This is the Facebook app's method, so most iOS users will likely try it by default anyways.

ios7-safari-portrait
ios7-safari-landscape

how do i force swipebox to reinitialize?

i try to combine swipebox with isotope on one page.
now when i filter my photos on the page with isotope i'm able to remove the swipebox class from my links. and add them if i choose to show another selection.
but swipebox keeps it's original set of pictures, meaning i allways see all the pictures in swipebox and not just the ones that are filterd now.

does anybody have a clue how to fix this?

How-to : On fullscreen, click on the image go to the next one ?

Hi,

TY for the lib, nearly perfect as I tested ;-)

I try but I don't find how to make the next action on click on the fullscreen image
Can someone help ?

I try things like that in "source/jquery.swipebox.js" ligne 404 (actual version)
"$('.current').bind('click touchend', function(e){
e.preventDefault();
e.stopPropagation();
$this.getNext();
$this.setTimeout();
});"

It would be fine if we had a before and next on left and right of the image too, but it's another thing (if you have track)

Have a nice day

PS : for example, this add works fine
//show bar on mouse move
$(document).bind('mousemove', function(e){
if(!bars.hasClass('visible-bars')) {
$this.showBars();
$this.setTimeout();
}
});

social behavior

Will there in the future come f.x. a share on facebook button in the navigationbar?

Trouble with navigation: SVG not showing

Hello, I'm having trouble getting the navigation "icons.svg" to show properly. In fact, they aren't showing up on the screen. The links are there, because if i click on where the arrows should be, i can navigate the images, but they are "invisible"

Also, if i inspect the element (using google chrome) and uncheck the element style that calls the .svg, the .png version displays properly.

What do i need to change to ONLY use the .png version? (icons.png)

Thanks! Everything else is working perfectly.

Crossfade on desktop, swipe on touch?

Hi, this plugin looks really nice. Light and simple.

Would it be complicated to add fade transitions for "desktop" somehow, and keep the swipe for touch devices?

I know this is typical question, that does not really keep the code to a minimum.
But hope you can help!

Concatenated files with swipebox

When using several .js files on some project i want to speed up loading time a little bit by cancatenating them into one file. This will lead to an error "Uncaught TypeError: undefined is not a function" as swipebox minified source file (jquery.swipebox.min.js) is missing semicolon at the end of the code.

I suggest to add semicolon at the end of minified source file.

donate and question

Where can I donate to support this project?

Also, what happens in ie7? Does it just open the image or does it throw an error?

I just tested it, it just flakes out on ie7. I wonder if this will work just to get the images to show up on ie7. I don't care if the box works, or I can use an old copy of fancybox just for ie7. Man I hate IE

    <!--[if gt IE 7]><!-->
    <script src="assets/js/jquery.swipebox.min.js"></script>
    <!--<![endif]-->

    <!--[if lte IE 7]><!-->
    <script src="assets/js/oldfancybox.js"></script>
    <!--<![endif]-->

Super slow when there are many images in the list

Okay when there are small number of photos on the list (e.g. ~20). But when the number of photos are large (e.g. 300) it will be very slow. Looks like it caused by it will create a swipebox-caption and swipebox-slider for each photo.

Captions are limited

When the captions are lengthy, they are not fully displayed. Might be a rare use case.

mp4 video support

Hi,

Is it very difficult to include support for viewing mp4 and other video formats in swipebox? I know I can use youtube/vimeo urls but my client wants to host videos in his own server for legal reasons.
Could you please add this capability?

Perfect this swipebox!!!

Very good plugin, works perfectly!

I wonder if he supports putting the count of photos in the gallery, for example: Photo 1 of 367

Is that possible?

Thank you!

Background overlay issue

When swipebox is triggered (by clicking on some image) it goes to fullscreen mode. Than the webbrowsers scrollbars are hidden but the area where they were is not filled with dark background overlay.

Same issue with FF and Chrome tested on Linux/Kubuntu.

Thumbnail grouping

First of all beautiful plugin!

I was wondering if it's possible to add thumbnail grouping (either by "rel" or "data-swipeboxgroup"). This is so that if there are several groups of thumbnails on a page then opening one will only create a swipebox for the images in its group, rather than all the images on the page.

Youtube/swipebox-video class

Hey,

I'm using Swipe Box with the Skeleton Boiler Plate. I don't think there is any other code interfering with the class since images work fine, but it seems like the swipebox-video class is totally inactive.

a class="swipebox-video" rel="group" target="swipebox" href="http://www.youtube.com/watch?v=hOEuCk5qZWw"
img src="images/gallery/thumbnails/mercsintrothumb.png" alt="" class="scale-with-grid"

This sample is using rel="group" because it's grouped with some images, however, even changing it to something like rel="youtube" so it stands by itself still yields no different results.

Here are my active jquery files as well:

jquery-2.0.3.js">
jquery.swipebox.js">
ios-orientationchange-fix.js">
jquery.isotope.min.js"

This problem is happening on Windows 8, iPhone 5, Firefox 22.x, Google Chrome 28.x, Safari and Safari Mobile

Asking a suggestion

Hi, I really like your swipebox and I've been trying to use it in my portfolio site.
I just have one suggestion. When the swipebox starts, could it be slide in to left from right just like the images slide to left from right. It would be nicer if it starts by sliding up from to top. I've been trying to figure it and after I spent couple days I finally decide to ask here. Would it be too complicated? Let me know. Thanks.

limit size

Hello

I was wondering whether it is possible to limit the size of the lightbox to the size of the picture - if I only have a picture that's 1024x768, there is no point of showing it full screen on a 1680 monitor as it would blur the picture?

Project page errors

Just a heads up about the following errors on the demo page :)

<script type="text/javascript">
jQuery(function($) {
    $(".swipebox").swipebox();
});
<script>

Requires closing script tag.

And this section of pre code:

<script type="text/javascript">
jQuery(function($) {
    $(".swipebox").swipebox({
        useCSS : true, // false will force the use of jQuery for animations
        hideBarsDelay : 3000 // 0 to always show caption and action bar
        videoMaxWidth : 1140, // videos max width
        beforeOpen: function(){}, // called before opening
            afterClose: function(){} // called after closing
    });
});
<script>

Also requires closing script tag and comma after hideBarsDelay : 3000

Thanks for the lightbox script.. very nice!

Swipebox and Tooltips

Is there a solution for using the swipebox together with a tooltip plugin?

The tooltip-plugin kills the title and the swipebox (or any other lightbox) can't get the needed information.

I know this is a general problem and no specific swipebox problem.

some weird behaviour

So I am using swipebox for a situation, when a click on a thumbnail invokes swipebox, however, the thumbnail itself is not loaded into swipebox, and the images are not displayed before invoking swipebox as well. My custom code (use it in WP) looks like this:

jQuery(document).ready(function() {
    jQuery(".swipebox").swipebox({
hideBarsDelay : 0
});
jQuery(".pressthumb").click(function(e) {e.preventDefault(); jQuery(".swipebox").click();});
});

In this case, opened swipebox works like expected, but switches between only first and last image. I have 7 of them in html, only they have display:none, because, as I mentioned, I do not need them to show up in website, just in swipebox... HTML looks like this

<a href="thumb.jpg" class="pressthumb">
    <img src="thumb.jpg">
</a>
<a style="display:none" href="image1.jpg" class="swipebox">
    <img src="image1.jpg">
</a>
//5 more images
<a style="display:none" href="image7.jpg" class="swipebox">
    <img src="image7.jpg">
</a>

Do you have any ideas on the described behaviour?

Not an issue, just a solution of sorts for getting it to work only on touch devices with colorbox on non-touch

So far this appears to be working. Tested on android and ios touch devices (tablets and phones) and on ie7, 8, and the modern browsers.

if ("ontouchstart" in document.documentElement) { //load the touch script

jQuery.getScript("assets/js/jquery.swipebox.js", function () {
    jQuery(".popimg").swipebox({
        useCSS: true, // false will force the use of jQuery for animations
        hideBarsDelay: 0 // 0 to always show caption and action bar
    });

});

}
else //load non-touch script
{

jQuery.getScript("assets/js/jquery.colorbox-min.js", function () {
    jQuery('.popimg').colorbox({
        maxWidth: '95%',
        maxHeight: '95%'
    });

    var resizeTimer;
    jQuery(window).resize(function () {
        if (resizeTimer) clearTimeout(resizeTimer);
        resizeTimer = setTimeout(function () {
            if (jQuery('#cboxOverlay').is(':visible')) {
                jQuery.colorbox.load(true);
            }
        }, 300)
    });
});
}

hideBarsDelay: 0

hideBarsDelay: 0 Doesn't seem to be working for me, the bars are still hiding after a small delay.
Can anybody else confirm that this is working for them (have tried on multiple sites I'm working on)

Can not get to work consistently on a single mobile browser

DEVICE: Droid X2
SYSTEM: Android 2.3.5
OS: Eclipse 2.3

Default Browser, Dolphin Browser, Boat Browser - Image box placement is fixed to top of browser window. Swipe and buttons work, but no access to buttons if clicking on an image lower on the page.

Firefox - Image box placement is relative to below browser window. No access to buttons.

Opera Mini, One Browser - No image box, navigates to image link.

UC Browser - Image box placement is correct, buttons and swipe work, but the close button does not. For some reason when you click the close button it goes to the second image in the gallery. Curiously it will actually close the image box if you long press the button, then on release the image box will close.

These are just my observations when testing the script on my device. The webpage I am testing it on is completely minimal, no other css and the content is purely images with links class="swipebox" using the default swipebox source code from github.

Is there some way to use script for better compatibility?

Footer navigation is not working on Android 4.0

Nice plugin :)

Unfortunately the navigation buttons in the footer (close and prev/next) are not working. By tapping them top and bottom navs just toggling fede in and fade out.

Please check it. Thank you.

  • Alex

Gallery - Videos desktop

In a desktop browser environment, when there are multiple YouTube videos if one is playing and the user moves to another via the prev/next navigation the video continues to play. A user can end up with multiple videos playing at the same time. Would it be possible to pause a video when the user navigates away from it through the gallery? Or is there a simple way to hide the Prev/Next navigation if the item is a video?

I've tested with the following desktop browsers in a Win 7-64 environment all with the same results:
Chrome 27.x
Firefox 22
Safari 5.1.7
Opera 12.15
IE 8.x

Note: In testing on iPhone 4 & 5 iOS 6.x/Samsung GS3 Android 4.2.x there doesn't seem to be an issue and I'm guessing all is good on iPads & Android tablets as well.

It allows zooming in on the image

hi,
It would be nice when you open an image you can zoom in on the image. For example there are many images of text that are unreadable.

Navigation images disappear on mobile

The buttons are still there and are click-able but the images aren't, so they're effectively invisible.

I was using iPhone 4 to view it on this site:
http://shawnaguy.com/

Any idea why it would behave this way on this site?
Thanks a lot,

Note: the site only uses Swipebox in mobile. It's using Lightview on PCs.

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.