Animated header image.
parent
16bc7bdc34
commit
4a1c54cdbb
33
js/script.js
33
js/script.js
|
@ -1,7 +1,34 @@
|
|||
/* Author:
|
||||
|
||||
*/
|
||||
/* hackerspace.pl js
|
||||
* by q3k@hackerspace.pl et al
|
||||
*
|
||||
* cc by-nc-sa */
|
||||
|
||||
$(function(){
|
||||
var rotimageMoving = false;
|
||||
|
||||
$("#rotimage").mouseover(function() {
|
||||
if (!rotimageMoving)
|
||||
{
|
||||
rotimageMoving = true;
|
||||
$("#rotimage").animate({
|
||||
height: "200px",
|
||||
}, 300, "swing", function() {
|
||||
rotimageMoving = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
$("#rotimage").mouseout(function() {
|
||||
if (!rotimageMoving)
|
||||
{
|
||||
rotimageMoving = true;
|
||||
$("#rotimage").animate({
|
||||
height: "100px",
|
||||
}, 300, "swing", function() {
|
||||
rotimageMoving = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue