Page 1 of 1

Understanding whats getting loaded in the variable ?

Posted: Mon Nov 24, 2014 11:22 pm
by gautamz07
https://github.com/luis-almeida/unveil/ ... .unveil.js

on this line : (Line 44)

Code: Select all

loaded = inview.trigger("unveil");
whats basically happening is "inview" executes the following function :

Code: Select all

images.filter(function() {
        var $e = $(this);
        if ($e.is(":hidden")) return;

        var wt = $w.scrollTop(),
            wb = wt + $w.height(),
            et = $e.offset().top,
            eb = et + $e.height();

        return eb >= wt - th && et <= wb + th;
      });
and than if true return

trigger("unveil") is executed .

but what exactly is the variable loaded holding ?????