Ada tutorial ringan membuat
link share
sederhana dengan sentuhan efek hover. Tampilan awal akan terlihat biasa saja, ketika di hover akan terlihat efek hover dengan gambar berwarna. Beberapa tut's serupa dengan varian berbeda
Cuma ada 4 buah link tujuan, yaitu ke RSS,tiwtter,facebook dan google plus. Jika kalian mau menambahkan icons/links berarti harus buat sendiri gambarnya yah :d
Markup HTML
<div class='social-wrap'>
<ul>
<li><a class='rss' href='YOUR-LINK' target='_blaank'>Rss</a></li>
<li><a class='twitt' href='YOUR-LINK' target='_blaank'>Twit</a></li>
<li><a class='fb' href='YOUR-LINK' target='_blaank'>FB</a></li>
<li><a class='google_p' href='YOUR-LINK' target='_blaank'>G+</a></li>
</ul>
</div>
Kode CSS
.social-wrap {
margin: 0px;
padding: 0px;
}
.social-wrap ul li{
list-style: none;
}
.social-wrap li a {
margin: 0px 5px 0px;
width: 60px;
height: 60px;
float: left;
text-indent: -99999px;
border: solid 1px #555;
border-radius: 15px;
-webkit-border-radius: 15px;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
}
.social-wrap li a.fb {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9TOfFq0j_4IrkHeSuu89CSf-rkqWZ1OyFdecTxAQLOi4BqWleAsLhZtMcaGdFEOmO2WpMV6vpd90TcyN88HvCL2I_pgHrrZhn3cMA6aYzrGMSNp4EgT2bJGQPbEyfMZpmM75i5oM3WQ/s1600/facebook.png) no-repeat -0px -88px;
}
.social-wrap li a.fb:hover {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9TOfFq0j_4IrkHeSuu89CSf-rkqWZ1OyFdecTxAQLOi4BqWleAsLhZtMcaGdFEOmO2WpMV6vpd90TcyN88HvCL2I_pgHrrZhn3cMA6aYzrGMSNp4EgT2bJGQPbEyfMZpmM75i5oM3WQ/s1600/facebook.png) no-repeat -0px -0px;
}
.social-wrap li a.twitt {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Njxunosbo5RlAjn1VOdbB4vSninTgssjf9wPeolnQ5saftWrHDAeXab3WNqDx05VpMinB9X3bnmcGDXE2ApzjQn63seXgfI6-pX3B7_HL_Omh_2bNI9NWoowJQSMDBMa_BXONGfSHA/s1600/twitter-1.png) no-repeat 0px -88px;
}
.social-wrap li a.twitt:hover {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Njxunosbo5RlAjn1VOdbB4vSninTgssjf9wPeolnQ5saftWrHDAeXab3WNqDx05VpMinB9X3bnmcGDXE2ApzjQn63seXgfI6-pX3B7_HL_Omh_2bNI9NWoowJQSMDBMa_BXONGfSHA/s1600/twitter-1.png) no-repeat 0px 0px;
}
.social-wrap li a.google_p {
background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqUsHXN_nghkLWJHIiMxZ7GJpUg2R_DnlqcQ9KrwAXWnf5BQoz6Spi2frbn4i1z59V4isWaue_Oox3GiExhtNu1tw_3dXufw7V4WfutxwtL6GPqIEVlKG9Qj8iqzgXoYyyb4uyvnQSkg/s1600/google.png) no-repeat 0px -88px;
}
.social-wrap li a.google_p:hover {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqUsHXN_nghkLWJHIiMxZ7GJpUg2R_DnlqcQ9KrwAXWnf5BQoz6Spi2frbn4i1z59V4isWaue_Oox3GiExhtNu1tw_3dXufw7V4WfutxwtL6GPqIEVlKG9Qj8iqzgXoYyyb4uyvnQSkg/s1600/google.png) no-repeat 0px 0px;
}
.social-wrap li a.rss {
background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyxUDnH-I24-2TT4jU0vho1WCptnsQtQuj9OouP6GXsxweneADgOk3BBCldXx2OGwHz4PJS-iD7BH1-Xd96KgkbGVEreeuuZacTCdAO49oMur8FtQOJSINchuQFCDvv_BLZIWzIOlW-Q/s1600/twitter.png) no-repeat 0px -88px;
}
.social-wrap li a.rss:hover {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyxUDnH-I24-2TT4jU0vho1WCptnsQtQuj9OouP6GXsxweneADgOk3BBCldXx2OGwHz4PJS-iD7BH1-Xd96KgkbGVEreeuuZacTCdAO49oMur8FtQOJSINchuQFCDvv_BLZIWzIOlW-Q/s1600/twitter.png) no-repeat 0px 0px;
}
Happy coding \m/
Tidak ada komentar:
Posting Komentar