Animated Radial Menu with CSS and Jquery for Blogger
Σελίδα 1 από 1 • Μοιραστείτε
[Πρέπει να είστε εγγεγραμμένοι και συνδεδεμένοι για να δείτε αυτόν το σύνδεσμο.]
Add it on Blogger
Goto Blogger Dashboard >> Template
Backup your template
Click on Edit HTML
Search for the ]]></b:skin> tag and just above it paste the following chunk of code:
Now goto Layout Tab and add a new gadget HTML/Javascript and paste the below code in it:
Add it on Blogger
Goto Blogger Dashboard >> Template
Backup your template
Click on Edit HTML
Search for the ]]></b:skin> tag and just above it paste the following chunk of code:
- Κώδικας:
@import "http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css";
.pm-radialnev {
background: auto;
position:$endside;
}
.circular-menu {
width: 250px;
height: 250px;
margin: 0 auto;
position: relative;
}
.circle {
width: 250px;
height: 250px;
opacity: 0;
-webkit-transform: scale(0);
-moz-transform: scale(0);
transform: scale(0);
-webkit-transition: all 0.7s ease-out;
-moz-transition: all 0.7s ease-out;
transition: all 0.7s ease-out;
}
.open.circle {
opacity: 50;
-webkit-transform: scale(1);
-moz-transform: scale(1);
transform: scale(1);
}
.circle a {
text-decoration: none;
color: #5b97f9;
display: block;
height: 40px;
width: 40px;
line-height: 40px;
margin-left: -20px;
margin-top: -20px;
position: absolute;
text-align: center;
}
.circle a:hover {
color: #34495e;
}
.menu-button {
position: absolute;
top: calc(50% - 30px);
left: calc(50% - 30px);
text-decoration: none;
text-align: center;
color: white;
border-radius: 50%;
display: block;
height: 40px;
width: 40px;
line-height: 40px;
padding: 10px;
background: #5b97f9;
}
.menu-button:hover {
background-color: #34495e;
} #pmcredits{display:none;}
Now goto Layout Tab and add a new gadget HTML/Javascript and paste the below code in it:
- Κώδικας:
<div class="pm-radialnev">
<nav class="circular-menu">
<div class="circle">
<a href="#" class="fa fa-home fa-2x"></a>
<a href="#" class="fa fa-facebook fa-2x"></a>
<a href="#" class="fa fa-twitter fa-2x"></a>
<a href="#" class="fa fa-linkedin fa-2x"></a>
<a href="#" class="fa fa-github fa-2x"></a>
<a href="#" class="fa fa-rss fa-2x"></a>
<a href="#" class="fa fa-pinterest fa-2x"></a>
<a href="#" class="fa fa-asterisk fa-2x"></a>
</div>
<a href="#" class="menu-button fa fa-bars fa-2x"></a>
</nav>
</div>
<div id="pmcredits"> <a href="http://www.pakmax.net/">PakMax</a></div> <script type='text/javascript'>
var items = document.querySelectorAll('.circle a');
for(var i = 0, l = items.length; i < l; i++) {
items[i].style.left = (50 - 35*Math.cos(-0.5 * Math.PI - 2*(1/l)*i*Math.PI)).toFixed(4) + "%";
items[i].style.top = (50 + 35*Math.sin(-0.5 * Math.PI - 2*(1/l)*i*Math.PI)).toFixed(4) + "%";
}
document.querySelector('.menu-button').onclick = function(e) {
e.preventDefault(); document.querySelector('.circle').classList.toggle('open');
}
</script>
Παρόμοια θέματα
Δημιουργήστε έναν λογαριασμό ή συνδεθείτε για να απαντήσετε
Προκειμένου να απαντήσετε πρέπει να είστε μέλος.
Δημιουργία Λογαριασμού
Ενταχθείτε στην κοινότητά μας δημιουργώντας έναν λογαριασμό. Είναι πανεύκολο!
Δημιουργία ενός νέου Λογαριασμού
Σελίδα 1 από 1
Δικαιώματα σας στην κατηγορία αυτή
Δεν μπορείτε να απαντήσετε στα Θέματα αυτής της Δ.Συζήτησης