زمانی که اسم بنر رو میشنویم ناخود آگاه ذهنمون به سمت فوتوشاپ میره و
برنامه های دیگه که بنر رو با تصاویر میسازن و متحرکش میکنن اما دیگه زمون
این کارا دیگه گذشته که چند دقیقه فقط منتظر لود شدن بنرهای تویه سایتمون
بشیم چون بنرهای سی اس اس ۳ ( CSS3 ) فقط کد هست با این که چیزی از بنرهای
تصویری از لحاظ افکت و جذابیت چیزی کم نداره حجم خیلی کمتری نسبت به اونها
داره.این هم سری2 بنر های سی اس اس3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="rtl" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<style type="text/css">
#dl2{
display:block;
font-family: "B Yekan",Arial, Helvetica, Sans-Serif;
padding: 10px 20px 10px 20px;
margin:200px;
background-image:url('http://s2.picofile.com/file/7268499030/1.png');
background-color:#0b121b;
background-repeat:no-repeat;
background-position:left center;
-webkit-border-radius:7px;
-moz-border-radius:7px;
border-radius:7px;
width:438px;
height:70px;
box-shadow: 0px 0px 5px 1px #3A3A3A;
text-shadow: 0 0px 2px #726169;
border: 2px solid #00bed3;
overflow:hidden;
color:#fff;
}
#dl2 ul.dl{
width:210px;
margin: -10px 100px 0px 100px;
list-style:none;
}
#dl2 ul.dl li{
display:block;
background: #00bed3;
color: #fff;
text-shadow: 0 1px 0 #363636;
border-radius:0px 0px 5px 5px;
box-shadow: 0px 0px 5px 1px #3A3A3A;
padding: 5px;
width:200px;
text-align:center;
font-size:16px;
}
#dl2 a{
text-decoration:none;
color:#fff;
-webkit-transition:all 0.5s ease-in;
-moz-transition:all 0.5s ease-in;
-o-transition:all 0.5s ease-in;
transition:all 0.5s ease-in;
}
#dl2 a:hover{
color: transparent;
text-shadow: 0px 0px 2px #c5e4f4;
-moz-transition: all 200ms linear;
-o-transition: all 200ms linear;
-ms-transition: all 200ms linear;
transition: all 200ms linear;
-webkit-transition:all 0.5s ease-in;
-moz-transition:all 0.5s ease-in;
-o-transition:all 0.5s ease-in;
transition:all 0.5s ease-in;
}
#my_banner{
animation:my_banner 5s infinite;
-moz-animation:my_banner 5s infinite;
-webkit-animation:my_banner 5s infinite;
float:right;
transform: scale(2);
-moz-transform: scale(2);
-webkit-transform: scale(2);
}
@keyframes my_banner{
0% {}
10% {}
20% {transform: scale(2);}
30% {filter:alpha(opacity=0);opacity:0;}
40% {transform: scale(2) rotate(360deg);}
50% {transform: scale(2) rotate(-360deg);}
60% {padding: 0px 80px 0px 0px;}
70% {transform: scale(2);}
80% {padding: 0px 70px 0px 0px;}
90% {transform: scale(2);}
}
@-webkit-keyframes my_banner{
0% {}
10% {}
20% {-webkit-transform: scale(2);}
30% {filter:alpha(opacity=0);opacity:0;}
40% {-webkit-transform: scale(2) rotate(360deg);}
50% {-webkit-transform: scale(2) rotate(-360deg);}
60% {padding: 0px 80px 0px 0px;}
70% {-webkit-transform: scale(2);}
80% {padding: 0px 70px 0px 0px;}
90% {-webkit-transform: scale(2);}
}
@-moz-keyframes my_banner{
0% {}
10% {}
20% {-moz-transform: scale(2);}
30% {filter:alpha(opacity=0);opacity:0;}
40% {-moz-transform: scale(2) rotate(360deg);}
50% {-moz-transform: scale(2) rotate(-360deg);}
60% {padding: 0px 80px 0px 0px;}
70% {-moz-transform: scale(2);}
80% {padding: 0px 70px 0px 0px;}
90% {-moz-transform: scale(2);}
}
#my_banner1{
animation:my_banner1 5s infinite;
-moz-animation:my_banner1 5s infinite;
-webkit-animation:my_banner1 5s infinite;
font-size:18px;
float:left;
text-shadow: 0 0px 5px #000;
margin:0;
padding:5px;
}
@keyframes my_banner1{
0% {}
10% {}
20% {margin:0px 0px 0px -190px;}
30% {margin:0px 0px 0px -190px;}
40% {}
50% {}
60% {margin:0px 0px 0px -190px;}
70% {}
80% {}
90% {}
}
@-webkit-keyframes my_banner1{
0% {}
10% {margin:0px 0px 0px -190px;}
20% {margin:0px 0px 0px -190px;}
30% {}
40% {}
50% {margin:0px 0px 0px -190px;}
60% {}
70% {}
80% {}
90% {}
}
@-moz-keyframes my_banner1{
0% {}
10% {margin:0px 0px 0px -190px;}
20% {margin:0px 0px 0px -190px;}
30% {}
40% {}
50% {margin:0px 0px 0px -190px;}
60% {}
70% {}
80% {}
90% {}
}
</style>
</head>
<body>
<div id="dl2"><ul class="dl"><li><a href="لینک1">متن1</a></li></ul>
<p id="my_banner"><a href="لینک2">متن2</a></p><p id="my_banner1"><a href="لینک3">متن3</a></p>
</div>
</body>
</html>
موفق باشید