Hello, i'm Viewport and i'm painted red.
You can resize me vertically, and i'll still track my little childrens correctly ^_^
Below you can see my JS code.
$( '.scrollable-wrapper' ).find( '.element' ).viewportTrack( function ( state ) {
if ( state.inside ) {
$( this ).find( 'span' ).text( 'I am inside the viewport ^_^' );
ghost.find( '.element.' + $( this ).attr( 'el_num' ) + ' span' ).text( 'I am inside the viewport ^_^' );
} else {
$( this ).find( 'span' ).text( 'I am outside the viewport T_T' );
ghost.find( '.element.' + $( this ).attr( 'el_num' ) + ' span' ).text( 'I am outside the viewport T_T' );
}
} );