diff --git a/assets/js/temp.js b/assets/js/temp.js index 3dc2d08..152b41c 100644 --- a/assets/js/temp.js +++ b/assets/js/temp.js @@ -1,5 +1,5 @@ // Start music. -$(".video-self").tubeplayer({ +$(".video-self2").tubeplayer({ width: 0.001, height: 0.001, initialVideo: "UE9fPWy1_o4", @@ -33,6 +33,17 @@ $('.volume').on('blur', function() { localStorage.setItem('volumeValue', val); }); +// Show music options. +var musicHover; +$('.music-icon, .music-options').hover(function() { + clearTimeout(musicHover); + $('.music-options').fadeIn(); +}, function() { + musicHover = setTimeout(function() { + $('.music-options').fadeOut(); + }, 500); +}); + // Music options. $('.music-icon').on('click', function() { if($(this).hasClass('active')) { diff --git a/client/index.html b/client/index.html index ce96d37..38582e8 100644 --- a/client/index.html +++ b/client/index.html @@ -17,7 +17,7 @@
- +
diff --git a/client/scss/_base.scss b/client/scss/_base.scss index 75ba28e..77fbc5c 100644 --- a/client/scss/_base.scss +++ b/client/scss/_base.scss @@ -111,11 +111,6 @@ body { transition: all .2s ease-in-out 0s; z-index: 20; padding: 30px; - - &:hover .music-options { - opacity: 1; - visibility: visible; - } } .music-icon { @@ -143,9 +138,8 @@ body { color: #8798ac; clear: both; margin: 15px 0 0 0; - opacity: 0; - visibility: hidden; - width: 170px; + width: 180px; + display: none; label { float: left;