1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2025-05-17 15:05:33 +00:00

Donation++

I was told that you could hardly tell that it was possible to make
donations. This should make it more prominent, though I did my best to
not make it annoying.
This commit is contained in:
Lars Martens 2016-02-22 14:24:55 +01:00
parent ccf382b072
commit fa573a60b4
3 changed files with 47 additions and 22 deletions

View file

@ -124,6 +124,29 @@ $(document).ready(function(){
}
});
// Animate donation div
var donationheight = $("#donationanim").height() * 1.5;
$("#donationanim").css({
"transform" : "translateY(-"+donationheight+"px)",
"visibility" : "visible"
});
// Slide in
setTimeout(function(){
$("#donationanim").css({
"transform" : "translateY(0px)",
"transition" : "400ms",
});
// Slide out
setTimeout(function(){
$("#donationanim").css({
"transform" : "translateY(-"+donationheight+"px)",
});
}, 4000);
}, 2000);
});
function setup(){