webdev/js/jQuery.js

23 lines
441 B
JavaScript

// Ist jQery bereit?.
$( document ).ready(function() {
//Konsolen-Test
console.log( "jQuery ist bereit!" );
//Ausblenden / Einblenden
$("#aus").click(function(){
$(".box").fadeOut( 1500 );
});
$("#ein").click(function(){
$(".box").show();
});
//Animieren
$("#anim").click(function(){
$(".box").animate({
marginLeft: "150px",
opacity: 0.5
});
});
});