MooTools Plugins Updates: LazyLoad, LightFace, ScrollSpy, and More!

By  on  

What a busy month it's been!  I've spent a good amount of time prepping my Facebook Lightbox clone, LightFace, and working to expand my Dojo Toolkit knowledge.  I thought I'd take a few moments to catch you up on a few of my plugins and some other happenings within the MooTools plugin world.

LightFace

LightFace continues to take the world by storm.  I've made a few updates to LightFace including:

  • LightFace.Image automatically closes the LightBox when the image is clicked
  • The destroy method has been updated with a few fixes
  • A changelog has been added to record all of these updates

Please continue to file bug reports for LightFace;  I appreciate all of the comments, suggestions, and  bug reports.

LazyLoad

LazyLoad, the MooTools plugin that allows you to defer image loading until the user scrolls down/over to it, has been updated for maximum compatibility with MooTools 1.3.  Be sure to update LazyLoad on your website!

ScrollSpy

ScrollSpy has been updated to coincide with MooTools best practices:  adding a method by which you can start and stop the spy, thus remove an event once it's no longer needed.  This update was long overdue so be sure to update ScrollSpy when you get a moment.  All other functionality remains as it should.

Plugin Updates

If you aren't doing so already, you can follow me on Twitter to stay up to date with all plugin updates as I generally tweet as soon as one is updated.  MooTools FTW!

Recent Features

  • By
    Write Better JavaScript with Promises

    You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...

  • By
    CSS Animations Between Media Queries

    CSS animations are right up there with sliced bread. CSS animations are efficient because they can be hardware accelerated, they require no JavaScript overhead, and they are composed of very little CSS code. Quite often we add CSS transforms to elements via CSS during...

Incredible Demos

  • By
    pointer Media Query

    As more devices emerge and differences in device interaction are implemented, the more important good CSS code will become.  In order to write good CSS, we need some indicator about device capabilities.  We've used CSS media queries thus far, with checks for max-width and pixel ratios.

  • By
    Control Element Outline Position with outline-offset

    I was recently working on a project which featured tables that were keyboard navigable so obviously using cell outlining via traditional tabIndex=0 and element outlines was a big part of allowing the user navigate quickly and intelligently. Unfortunately I ran into a Firefox 3.6 bug...

Discussion

  1. Nice info David, I used scrollspy for now on.

  2. i hope after the update lazyload starts working on my blog, i have installed and activated it but its not working for some unknown reason.

    • try @ my lazyload..^^V

  3. Cliff

    I was using Lightface to create some dialog fields. I noticed that each call created a new Lightface object but only the first object’s elements were easily accessible – so entering different parameters in subsequent boxes had no effect. The solution was to use the destroy() function rather than the close() function. That is not obvious from the examples and documentation.

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!