Last active
September 22, 2018 20:51
-
-
Save venturion/73a1ec6b5202b3d7164f13fbc239fee5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Fix the transform scale tiles bug in css | |
*/ | |
function fixTiles (element, zIndex = 999) { | |
const element = $(element) | |
element.on('mouseover', (e) => { | |
element.css({ | |
'z-index': 0 | |
}) | |
$(this).css({ | |
'z-index': zIndex | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment