Skip to content

Instantly share code, notes, and snippets.

@venturion
Last active September 22, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venturion/73a1ec6b5202b3d7164f13fbc239fee5 to your computer and use it in GitHub Desktop.
Save venturion/73a1ec6b5202b3d7164f13fbc239fee5 to your computer and use it in GitHub Desktop.
/*
* 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