Improve this doc View source

when-visible
directive in module angular-scroll-animate

Description

Allows method hooks into the detection of when an element is scrolled into or out of view.

Usage

as attribute
<ANY when-visible
     when-not-visible="{string}"
     [when-not-visible="{string}"]>
   ...
</ANY>

Parameters

ParamTypeDetails
when-not-visiblestring

function to execute when element is scrolled into viewport

when-not-visible
(optional)
string

function to execute when element is scrolled out of viewport

Example

Source







Demo