Giter Club home page Giter Club logo

Comments (8)

alialamshahi avatar alialamshahi commented on August 29, 2024

@ericthelast
@botelho
Can you please help?

from scatteredpolaroidsgallery.

ericthelast avatar ericthelast commented on August 29, 2024

@alialamshahi, regarding navigation arrows you should be able to use the new navigate() method (see 684a12b). Simply add your arrows markup, then bind click of each to call the navigate() method. navigate() also takes one arg (prev/next) so the way I determined that was to add a data-dir="[dir]" attribute to my arrows, then check for that in the click handler.

Hope that helps.

from scatteredpolaroidsgallery.

alialamshahi avatar alialamshahi commented on August 29, 2024

@roylodder @ericthelast, Thanks a million!

from scatteredpolaroidsgallery.

Yiags avatar Yiags commented on August 29, 2024

Thank you for all of your comments! I am trying to remove the navigation dots and add arrows instead - am finding it really quite tricky though! I have tried replacing the photostack.js file with the new one found using the link above (684a12b) but it breaks the gallery and leaves just the last image in view?

Does anyone have a simple way of explaining how to do this quickly? It feels like I have lost a few years of my life trying!

Thanks again!

from scatteredpolaroidsgallery.

LeoTanoue avatar LeoTanoue commented on August 29, 2024

This is how I did. Works perfectly:
var ps = new Photostack(document.getElementById('photostack-1'), {});
$("#leftArrowGallery").prependTo($(".photostack > nav"));
$("#rightArrowGallery").appendTo($(".photostack > nav"));

$("#leftArrowGallery").click(function () {
    ps.navigate('prev');
});

$("#rightArrowGallery").click(function () {
    ps.navigate('next');
});

if you want to remove the bullets just do a $(".photostack > nav > span").each(function(){ $(this).remove(); }); before adding the arrows.

from scatteredpolaroidsgallery.

hmammadov avatar hmammadov commented on August 29, 2024

Hi!

If use new photostack.js from 684a12b I get an error "Cannot read property 'offsetWidth' of undefined". And I get the same error even if open index.html in ScatteredPolaroidsGallery

Why does it happen?

Thanks in advance for your help!

from scatteredpolaroidsgallery.

rexmiller1122 avatar rexmiller1122 commented on August 29, 2024

This is an awesome plugin! I got it working great, but I would like to make it possible for users to also be able to click directly on the scattered polaroid images to select (make current) and move to middle - just like the Nav dots do. I am new to learning js/jQuery, so I am finding it difficult to figure this out. I would think it would be possible since it is already working with the Nav dots. How can I make this happen? Any help greatly appreciated!!

from scatteredpolaroidsgallery.

rexmiller1122 avatar rexmiller1122 commented on August 29, 2024

I was able to get the prev/next buttons to add and work. However, if a user clicks anywhere on the gallery (not the buttons) it will shuffle all of the other images (not the current image) but then it breaks the prev/next buttons from working. If they do not click anywhere on the gallery and only click on the prev/next buttons, it works just fine, but if they click anywhere other than the buttons, it shuffles the images and breaks the prev/next buttons. Any suggestions?

from scatteredpolaroidsgallery.

Related Issues (13)

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.