Skip to content

Instantly share code, notes, and snippets.

@dhirajforyou
Created February 11, 2019 06:35
Show Gist options
  • Save dhirajforyou/1fe448a09028508c35c601193df41958 to your computer and use it in GitHub Desktop.
Save dhirajforyou/1fe448a09028508c35c601193df41958 to your computer and use it in GitHub Desktop.
Page Hover Preview // source https://jsbin.com/miqanik
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Page Hover Preview</title>
<style id="jsbin-css">
.box{
display: none;
width: 100%;
}
a:hover + .box,.box:hover{
display: block;
position: relative;
z-index: 100;
}
</style>
</head>
<body>
This live preview for <a href="https://www.expertrec.com/">ExpertRec</a>
<div class="box"><iframe src="https://www.expertrec.com/" width = "500px" height = "500px"></iframe></div> remains open on mouseover.
<script id="jsbin-source-css" type="text/css"> .box{
display: none;
width: 100%;
}
a:hover + .box,.box:hover{
display: block;
position: relative;
z-index: 100;
}
</script>
</body>
</html>
.box{
display: none;
width: 100%;
}
a:hover + .box,.box:hover{
display: block;
position: relative;
z-index: 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment