jquery.appear icon indicating copy to clipboard operation
jquery.appear copied to clipboard

Add check to make sure .appear is only called once when element stays in view.

Open jer2665 opened this issue 8 years ago • 6 comments

I need something to fire a settimeout when item appears, but 0.3.6 fires that every time you scroll with it in view too. This keeps track of if the element is in view and has appeared, and only triggers appear once, until the element disappears.

jer2665 avatar Jul 16 '17 15:07 jer2665

I'm working on upgrading my site to jquery3 and the jquerymigrate plugin is complaining on... JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos

This just uses the new way to handle pseudos

jer2665 avatar Jul 17 '17 11:07 jer2665

Your commit is not working

jvitoroc avatar Aug 19 '17 20:08 jvitoroc

Can you be more specific? I just did a test and it's working fine for me. Here are two codepens...

Original jquery.appear.js https://codepen.io/jer2665/pen/QMmbzN/

My changes to script https://codepen.io/jer2665/pen/yoKNGg/

jer2665 avatar Aug 20 '17 00:08 jer2665

I was using jquery 3, maybe that is the problem. Fork this project and make your version

jvitoroc avatar Aug 20 '17 01:08 jvitoroc

Codepen is using jquery3 as well, according to $.fn.jquery it's 3.2.1 as of my just checking.

jer2665 avatar Aug 20 '17 01:08 jer2665

it's working pretty fine for me. appreciate it

Mohsen-Khakbiz avatar Sep 18 '17 09:09 Mohsen-Khakbiz