• Jonathon HalliwellJonathon Halliwell, over 7 years ago

    More impressed by the site, really nice!

    9 points
  • Ed AdamsEd Adams, over 7 years ago

    The images here are absolutely mental. I particularly the enjoy the one of a huge bar of chocolate floating in a swimming pool while a horse wearing a towel looks on in awe.

    Also, it sucks there's no transition animations out of the box.

    7 points
    • Lucas MottaLucas Motta, over 7 years ago

      I like that there's no animations out of the box – maybe it would be useful to have it as an optional external dependency.

      1 point
  • Nicolas Turlais, over 7 years ago

    Hi there, I'm the author of the plugin, if you have any question/suggestion please do :)


    4 points
    • Can GoktasCan Goktas, over 7 years ago

      Do you support swiping on mobile devices? Clicking tiny little arrows on a phone doesn't feel comfortable nowadays.

      2 points
      • Nicolas Turlais, over 7 years ago

        Hi! unfortunately not yet (but you can easily increase the clickable size of the arrows)

        0 points
      • Nik SytnikNik Sytnik, over 7 years ago

        I reccomend Photoswipe if you need advanced touch support, check it out. However it's a bit hard to implement and it may be overkill for most projects.

        Great work on chocolat.js btw, seems very easy and lightweight. I'm definitely going to use in a project :)

        Loving the website too, I'm a big fan of this 3D style.

        1 point
      • Clay MacTavishClay MacTavish, over 7 years ago


        1 point
      • Ted Magwell, over 7 years ago

        Just use PhotoSwipe, it's great. Some say that it's hard, but after you implement it once – it becomes simple.

        1 point
    • M. AppelmanM. Appelman, over 7 years ago

      Wouldn't this be considered a carousel instead of a lightbox?

      0 points
      • Nicolas Turlais, over 7 years ago

        It depends on if you use it within a container or fullWindow :) It can be a carousel as well as a lightbox, maybe that's the power of chocolat (?)

        0 points
    • Rick LanceeRick Lancee, over 7 years ago

      Why do you animate the margin and top,left,bottom,right positions, instead of transforms? If for no reason, then i would suggest using the transforms properties. It will increase the performance a lot; since it doesn't cause a paint and layout event to occur.

      Other than that i really like it and will definitely try it out in a project.

      1 point
      • Nicolas Turlais, over 7 years ago

        Yep, I kept the positions properties because of older IE compt, but i think now it's time to use CSS transform instead. I will do this soon.

        1 point
    • Clay MacTavishClay MacTavish, over 7 years ago (edited over 7 years ago )

      So I'm wondering how the data is loaded into the lightbox. How are you building the lightbox slides? Do you plan on extending the plugin to allow for JSON instead of scraping the page and looking for

    • and data attributes?

      I was recently building an Pinterest-Instagram-type clone (used the bluimp gallery, available on github) and I wanted my users to be able to view nth items per page but swipe/scroll through the entire set once a lightbox slide was up. The only way to do this is to load the data in another way.

      Do you mind talking a little bit about the javascript you wrote? Design patterns? Is the API going to be extended to allow for JSON? If so I may use this for the next version of my app.

      Fuck it, I'll fork it.

      good job

0 points