Git Product home page Git Product logo

jquery.inview's People

Contributors

jednano avatar liorocks avatar nugged avatar rso avatar zuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.inview's Issues

Version number inclusion into the JS files

It'd be very useful to include the version number of the plugin into the non-minified and minified JS files. Knowing the version number would make upgrading much easier.

Sensing "half in view?"

I'm using this plugin to fire events that animate things as a person scrolls down a page. Unfortunately, I don't have a way to know whether only a small sliver has scrolled into view or an entire frame has! Waiting for bottom means the opportunity has passed.

So is there a way to look for a "halfway point?" Or anticipate it?

wont work if we rearrange items after page load

i'm using this plugin to know which item in my page has been seen ... something like this

$('li.not_seen').bind('inview', function (event, visible, topOrBottomOrBoth) {
  if (visible == true) {
       $(this).removeClass('not_seen');
       console.log($(this).attr('id'));
  }
});

it works great but here is the problem

i have a sort plugin which rearranges the items based on their attributes , so for example if i click on sort by date items with bigger or smaller date would come to top of the page without any scrolling ... here is the problem , now when i scroll none of the items would trigger inview and code wont work anymore

i've tried to re-run the plugin code with each sort

    $(document).on('click' , '.sort' , function(){
            $('li.not_seen').bind('inview', function (event, visible, topOrBottomOrBoth) {
          if (visible == true) {

               $(this).removeClass('not_seen');
               console.log($(this).attr('id'));
          }
        }); 
    })

but it wont work , any suggestion ?

offset

Hi Jed, how is California going?

I appreciate the work you have done for the inview plugin, because it is so very helpful to fire css3 animation, on onepage websites, only if the object is in view. Without such a feature, no one ever would see those animations, right?

I have a question. Right now the class is added as soon as the top of the object is hitting the bottom of the screen. How can I make it to add the class only if 50% of that object is already seen?

Can you help me to achieve this?

Cheers from Berlin, Germany

Mark

Anyway to make it work with multiple elements of same class?

I have a few elements that i want to animate. But when I add class like -

$('myClass').bind('inview', function (event, visible, topOrBottomOrBoth)......

All animations perform at the same time, I mean when the first element is in view all the animations get triggered at the same time.

Anyway to make element of same class to be triggered only when they are in viewport?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.