Quelle: ...hier gehts weiter
Verwendet in: EQdynamics
Beschreibung:
- In den Ordner .js folgende javascript datei einfügen
- Das .js in der functions.php aufrufen
- die css classe in die styles.css
Möglichkeit 1
$(document).ready(function() {
/* Every time the window is scrolled ... */
$(window).scroll(function() {
/* Check the location of each desired element */
$('.hideme').each(function(i) {
var bottom_of_object = $(this).offset().top + $(this).outerHeight();
var bottom_of_window = $(window).scrollTop() + $(window).height();
/* If the object is completely visible in the window, fade it it */
if (bottom_of_window > bottom_of_object) {
$(this).animate({
'opacity': '1'
}, 500);
}
});
});
});
Möglichkeit 2
wp_enqueue_script( 'eq-dy-fader', get_template_directory_uri() . '/js/fader.js', array(), _S_VERSION, true );
Möglichkeit 3
.hideme
{
opacity:0.3;
}