Line 5: | Line 5: | ||
let growFn = "" | let growFn = "" | ||
$("#main-container #button").mouseover(function() { | $("#main-container #button").mouseover(function() { | ||
+ | |||
+ | $("#audioLanding").play() | ||
+ | $("#audioLanding").loop = true | ||
+ | |||
growFn = setInterval(function() { | growFn = setInterval(function() { | ||
+ | if($("#audioLanding").volume >= 0.2) { | ||
+ | $("#audioLanding").volume -=0.05 | ||
+ | } | ||
if ($("#main-container #button").width() <= 2 * $(window).width()) { | if ($("#main-container #button").width() <= 2 * $(window).width()) { | ||
$("#main-container #button").width( | $("#main-container #button").width( |
Revision as of 21:49, 17 October 2018