Using customization properties/methods with public API
  • Hi,

    Im trying to create a page that has a button to open up the gallery. I got this part working so far, but I would also like to customize the prettyPhoto gallery that opens. The code looks something like this:

    var btn = document.getElementById('open-gallery');
    btn.addEventListener('click', function() {

    api_images = ["", "#gallery-last-slide"];
    api_titles = ['Title 1','Title 2'];
    api_descriptions = ['Description 1','Description 2']



    This works just fine to open the gallery, but I can't change things like setting animation_speed to 'slow'.

    Any thoughts?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter