Thursday, 15 September 2016
Awesome animated CSS3 button
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>my best work</title>
<!-- Required CSS Script -->
<style type="text/css">
/*Wrapper*/
.vpb_main_wrapper
{
width:500px;
margin: 0 auto;
border: solid 1px #cbcbcb;
background-color: #FFF;
box-shadow: 0 0 15px #cbcbcb;
-moz-box-shadow: 0 0 15px #cbcbcb;
-webkit-box-shadow: 0 0 15px #cbcbcb;
-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;
padding:10px;
font-family:Verdana, Geneva, sans-serif;
font-size:11px;
}
/*Button Style Begins*/
.btn:link, a:visited
{
text-decoration: none;
color: #fff;
border: none;
}
div.vasPLUS
{
padding: 2em 5em;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 250%;
}
.btn
{
display: inline-block;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow:
0 8px 0 #1a74a1,
0 15px 20px rgba(0,0,0,.35);
-moz-box-shadow:
0 8px 0 #1a74a1,
0 15px 20px rgba(0,0,0,.35);
box-shadow:
0 8px 0 #1a74a1,
0 15px 20px rgba(0,0,0,.35);
-webkit-transition: -webkit-box-shadow .2s ease-in-out;
-moz-transition: -moz-box-shadow .2s ease-in-out;
-o-transition: -o-box-shadow .2s ease-in-out;
transition: box-shadow .2s ease-in-out;
}
.btn span
{
display: inline-block;
padding: 10px 20px;
font-family: "cooper-black-std-1", "cooper-black-std-2", Helvetica, Arial, sans-serif;
line-height: 1;
text-shadow: 0 -1px 1px rgba(19,65,88,.8);
background: #3194c6;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#3194c6), to(#5bacd6));
background: -moz-linear-gradient(#3194c6, #5bacd6);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
-moz-box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
-webkit-transition: -webkit-transform .2s ease-in-out;
-moz-transition: -moz-transform .2s ease-in-out;
-o-transition: -o-transform .2s ease-in-out;
transition: transform .2s ease-in-out;
}
.btn:active
{
-webkit-box-shadow:
0 8px 0 #1a74a1,
0 12px 10px rgba(0,0,0,.3);
-moz-box-shadow:
0 8px 0 #1a74a1,
0 12px 10px rgba(0,0,0,.3);
box-shadow:
0 8px 0 #1a74a1,
0 12px 10px rgba(0,0,0,.3);
}
.btn:active span
{
-webkit-transform: translate(0, 4px);
-moz-transform: translate(0, 4px);
-o-transform: translate(0, 4px);
transform: translate(0, 4px);
}
/*Button Style Ends*/
</style>
</head>
<body>
<br clear="all">
<center>
<div style="font-family:Verdana, Geneva, sans-serif; font-size:24px;">Awesome animated CSS3 button</div><br clear="all" /><br clear="all" />
<div class="vpb_main_wrapper">
<!--This is the button code -->
<div class="vasPLUS"><a href="javascript:void(0);" class="btn"><span>Press this!</span></a></div>
</div>
</center>
</body>
</html>
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment