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

推荐订阅源

S
Schneier on Security
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
博客园 - Franky
V
V2EX
爱范儿
爱范儿
J
Java Code Geeks
小众软件
小众软件
Last Week in AI
Last Week in AI
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
酷 壳 – CoolShell
酷 壳 – CoolShell
The Register - Security
The Register - Security
GbyAI
GbyAI
Vercel News
Vercel News
Y
Y Combinator Blog
腾讯CDC
F
Fortinet All Blogs
I
InfoQ
N
Netflix TechBlog - Medium
B
Blog RSS Feed
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
Scott Helme
Scott Helme
T
Tor Project blog
U
Unit 42
Google Online Security Blog
Google Online Security Blog
PCI Perspectives
PCI Perspectives
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
D
Darknet – Hacking Tools, Hacker News & Cyber Security
aimingoo的专栏
aimingoo的专栏
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
Security Archives - TechRepublic
Security Archives - TechRepublic

博客园 - 大力哥的技术

完成卸载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>