Skip to content

Instantly share code, notes, and snippets.

@jinze
Last active August 9, 2017 11:45
Show Gist options
  • Save jinze/c7e8088111822975e2438280a5d8b669 to your computer and use it in GitHub Desktop.
Save jinze/c7e8088111822975e2438280a5d8b669 to your computer and use it in GitHub Desktop.
Untitled
body{font-size:50px;}
.arrow{
vertical-align:middle;
display: inline-block;
width: 0;
height: 0;
border-left: 18px solid transparent;
border-right: 18px solid transparent;
border-top: 20px solid #333;
transition: transform .3s;
}
.link:hover .arrow{
transform: rotate(180deg);
}
.link .list{
display:none;
}
.link:hover .list{
display:block;
}
<div class="link" style="position:relative;">薄荷直播 <i class="arrow"></i>
<ul class="list" style="position:absolute;top: 40px;left: 5px;line-height:100px;border:#333 1px solid;list-style:none;width:500px;padding: 30px;box-sizing:border-box;overflow:hidden;">
<li>薄荷直播大厅</li>
<li>下载薄荷直播app</li>
</ul>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"130","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment