惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
博客园 - 叶小钗
罗磊的独立博客
The GitHub Blog
The GitHub Blog
H
Help Net Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
Spread Privacy
Spread Privacy
Google DeepMind News
Google DeepMind News
AWS News Blog
AWS News Blog
N
Netflix TechBlog - Medium
T
The Exploit Database - CXSecurity.com
云风的 BLOG
云风的 BLOG
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
Cyberwarzone
Cyberwarzone
T
Threatpost
T
Threat Research - Cisco Blogs
Recent Announcements
Recent Announcements
T
Tor Project blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
量子位
V
V2EX
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Proofpoint News Feed
I
Intezer
Schneier on Security
Schneier on Security
雷峰网
雷峰网
B
Blog RSS Feed
Jina AI
Jina AI
爱范儿
爱范儿
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Palo Alto Networks Blog
美团技术团队
博客园 - 【当耐特】

博客园 - 大力哥的技术

完成卸载vs2010后再安装 图片集合,可用作商品列表 无可奈何花落去 Uncaught TypeError: Cannot read property 'msie' of undefined CodeGenerator.cs 年月日控件 SQL GETDATE()日期格式化函数 股票操作要点 用户中心 - 博客园 京东分页 相册分类列表页 在线运行Javascript,Jquery,HTML,CSS代码 点击事件后动画提示 近舍网临时笔记 一些广告代码 爱可有—之最经典 爱可有网络社区需要定义 鼠标移动时缩小图片显示说明 一些正则验证-JS
多边形效果
大力哥的技术 · 2015-08-19 · via 博客园 - 大力哥的技术

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>

<head>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

  <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico?t=1423294220000" />

  <title>开源中国 - 找到您想要的开源项目,分享和交流</title>

<style>

body {

background: #1b1e24;

}

ul {

margin:0 auto;

padding:0;

list-style:none;

width: 1100px;

}

ul li {

float:left;

margin:20px 25px;

}

.shape {

width: 300px;

height: 300px;

position: relative;

}

.shape .overlay {

display:block;

width: 310px;

height: 310px;

position: absolute;

top:-5px;

left:-5px;

-webkit-transform: scale(1,1);

-webkit-transition-timing-function:ease-out;

-webkit-transition-duration: 0.6s;

-moz-transform: scale(1,1);

-moz-transition-timing-function: ease-out;

-moz-transition-duration: 0.6s;

transform: scale(1,1);

transition-timing-function: ease-out;

transition-duration: 0.6s;

z-index:500;

/* allow user to actually perform actions underneath this layer */

pointer-events:none; 

background-repeat: no-repeat;

outline:0;

}

/* different shapes */

.shape .overlay.round {

background: url(http://www.queness.com/resources/html/masking-images-with-shape/round.png);

}

.shape .overlay.hexagon {

background: url(http://www.queness.com/resources/html/masking-images-with-shape/hexagon.png);

}

.shape .overlay.pentagon {

background: url(http://www.queness.com/resources/html/masking-images-with-shape/pentagon.png);

}

/* hover effect */

.shape:hover .overlay {

-webkit-transform: scale(1.07,1.07);

-webkit-transition-timing-function: ease-out;

-webkit-transition-duration: 0.3s;

-moz-transform: scale(1.07,1.07);

-moz-transition-timing-function: ease-out;

-moz-transition-duration: 0.3s;

}

.shape:hover .bg {

  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";

  filter: alpha(opacity=80);

  -moz-opacity: 0.8;

  -khtml-opacity: 0.8;

  opacity: 0.8;

  display:block;

}

.shape:hover .details {

  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";

  filter: alpha(opacity=100);

  -moz-opacity: 1;

  -khtml-opacity: 1;

  opacity: 1;

z-index:450;

  display:block;

}

/* content styles */

.shape .bg, 

.shape .details {

position: absolute;

width: 300px;

height:300px;

display:table-cell;

vertical-align:middle;

text-align:center;

top:0;

left:0;

opacity:0;

-webkit-transition: all 0.3s ease;

  -moz-transition: all 0.3s ease;

  -o-transition: all 0.3s ease;

  transition: all 0.3s ease;

display:none;  

}

.shape .bg {

background: #4b5a78;

}

.shape .details span.heading {

font-family: 'Roboto Condensed', serif;

font-size:30px;

display:block;

margin-top:70px;

color:#fff;

text-decoration:none;

}

.shape .details p {

font-family: 'Abel', sans-serif;

color:#fff;

width: 70%;

font-size:14px;

margin:0 auto;

}

.shape a.button {

padding:5px 15px;

font-family: 'Abel', sans-serif;

font-size:12px;

-webkit-border-radius: 20px;

-moz-border-radius: 20px;

-ms-border-radius: 20px;

-o-border-radius: 20px;

border-radius: 20px;

background: #2f3644;

text-decoration:none;

color:#fff;

display:block;

width:50px;

margin:0 auto;

text-align:center;

margin-top:15px;

}

.shape a.button:hover {

background: #fff;

color: #2f3644;

}

</style> 

</head>

<body>

<ul>

<li>

<div class="shape">

<a href="#" class="overlay round"></a>

<div class="details">

<span class="heading">PLAYER UI</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="http://www.yahoo.com" class="button">VIEW</a>

</div>

<div class="bg"></div>

<div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/1.jpg" alt="" />

</div>

</div>

</li>

<li>

<div class="shape">

<a href="#" class="overlay hexagon"></a>

<div class="details">

<span class="heading">IOS GAME</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="#" class="button">VIEW</a>

</div>

<div class="bg"></div><div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/2.jpg" alt="" />

</div>

</div>

</li>

<li>

<div class="shape">

<a href="#"  class="overlay pentagon"></a>

<div class="details">

<span class="heading">KEEP ROCKING</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="#" class="button">VIEW</a>

</div>

<div class="bg"></div>

<div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/3.jpg" alt="" />

</div>

</div>

</li>

<li>

<div class="shape">

<a href="#"  class="overlay round"></a>

<div class="details">

<span class="heading">GRAPH VISUAL</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="#" class="button">VIEW</a>

</div>

<div class="bg"></div>

<div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/4.jpg" alt="" />

</div>

</div>

</li>

<li>

<div class="shape">

<a href="#"  class="overlay hexagon"></a>

<div class="details">

<span class="heading">UI KIT</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="#" class="button">VIEW</a>

</div>

<div class="bg"></div>

<div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/5.jpg" alt="" />

</div>

</div>

</li>

<li>

<div class="shape">

<a href="#"  class="overlay pentagon"></a>

<div class="details">

<span class="heading">PEDALS</span>

<hr />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>

<a href="#" class="button">VIEW</a>

</div>

<div class="bg"></div>

<div class="base">

<img src="http://www.queness.com/resources/html/masking-images-with-shape/img/6.jpg" alt="" />

</div>

</div>

</li>

</ul>

</body>

</html>