用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字
云代码 - css代码库

CSS3超酷分享到sns社区效果

2013-02-01 作者: 小蜜锋举报

[css]代码库

/* BASIC RESET */
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input {
	margin:0;
	padding:0;
}
/* HTML ELEMENTS */
body {
	background-image:url("../images/texture.gif");
	font-family:"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Arial, Tahoma, Verdana, sans-serif;
	font-size:13px;
}
h3 {
	clear:both;
	padding:20px;
	text-align:center;
}
a {
	color:#AF7F00;
	text-decoration:underline;
}
a:hover {
	text-decoration:none;
}
/* COMMON CLASSES */
.break {
	clear:both;
}
/* WRAPPER */
#wrapper {
	width:800px;
	margin:40px auto;
}
/* SOCIAL ICONS - GENERAL */
.social {
	list-style:none;
	margin:30px auto;
	width:464px;
}
.social li {
	display:inline;
	float:left;
	background-repeat:no-repeat;
}
.social li a {
	display:block;
	width:48px;
	height:48px;
	padding-right:10px;
	position:relative;
	text-decoration:none;
}
.social li a strong {
	font-weight:normal;
	position:absolute;
	left:20px;
	top:-1px;
	color:#fff;
	padding:3px;
	z-index:9999;
	text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75);
	background-color:rgba(0, 0, 0, 0.7);
	-moz-border-radius:3px;
	-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	-webkit-border-radius:3px;
	-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	border-radius:3px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
li.delicious {
	background-image:url("../images/delicious.png");
}
li.digg {
	background-image:url("../images/digg.png");
}
li.facebook {
	background-image:url("../images/facebook.png");
}
li.flickr {
	background-image:url("../images/flickr.png");
}
li.linkedin {
	background-image:url("../images/linkedin.png");
}
li.reddit {
	background-image:url("../images/reddit.png");
}
li.rss {
	background-image:url("../images/rss.png");
}
li.twitter {
	background-image:url("../images/twitter.png");
}
/* SOCIAL ICONS - CSS3 */
#css3:hover li {
	opacity:0.2;
}
#css3 li {
	-webkit-transition-property: opacity;
	-webkit-transition-duration: 500ms;
	-moz-transition-property: opacity;
	-moz-transition-duration: 500ms;
}
#css3 li a strong {
	opacity:0;
	-webkit-transition-property: opacity, top;
	-webkit-transition-duration: 300ms;
	-moz-transition-property: opacity, top;
	-moz-transition-duration: 300ms;
}
#css3 li:hover {
	opacity:1;
}
#css3 li:hover a strong {
	opacity:1;
	top:-10px;
}

[代码运行效果截图]


CSS3超酷分享到sns社区效果

[源代码打包下载]




网友评论    (发表评论)

共1 条评论 1/1页

发表评论:

评论须知:

  • 1、评论每次加2分,每天上限为30;
  • 2、请文明用语,共同创建干净的技术交流环境;
  • 3、若被发现提交非法信息,评论将会被删除,并且给予扣分处理,严重者给予封号处理;
  • 4、请勿发布广告信息或其他无关评论,否则将会删除评论并扣分,严重者给予封号处理。


扫码下载

加载中,请稍后...

输入口令后可复制整站源码

加载中,请稍后...