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:
parent
ccf382b072
commit
fa573a60b4
3 changed files with 47 additions and 22 deletions
23
js/main.js
23
js/main.js
|
@ -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(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue