Understanding whats getting loaded in the variable ?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Understanding whats getting loaded in the variable ?

Post 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 ?????
Post Reply