.::иίмвuźźεя вļ∆¢к::. .::↗ ςσммύπίτγ ↖::.. Diberdayakan oleh Blogger.

Minggu, 03 April 2011

Fancy Apple-Style Icon Slide Out Navigation

    Cara membuatnya :
  1. Login blogger
  2. Rancangan, Edit Html, Cari kode ]]></b:skin>
  3. Dan Simpan kode berikut diatasnya : 

/* -------------------------
Fancy Apple-Style Icon Slide Out Navigation
------------------------------------------ */
.navigationaple{
    position:relative;
    margin:0 auto;
    width:915px;
}
ul.menuaple{
    list-style:none;
    font-family:"Verdana",sans-serif;
    border-top:1px solid #bebebe;
    margin:0px;
    padding:0px;
    float:left;
}
ul.menuaple li{
    float:left;
}
ul.menuaple li a{
    text-decoration:none;
    background:#7E7E7E url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb7BqVj46V2J_xdOs4k5V8mQF3WXKKGdaKBHYZZ56GHJ2hvKAxJZIEx9-qYfOWNyZnueWHpw-RW5ic3fOrH0JpDDE0fAkoeFna00dYfo0DCPJVk7wsbJqDoO5qI1_nlTDaK1SnTY-CnTY/s1600/bgMenu.png) repeat-x top left;
    padding:15px 0px;
    width:128px;
    color:#333333;
    float:left;
    text-align:center;
    border-right:1px solid #a1a1a1;
    border-left:1px solid #e8e8e8;
    font-weight:bold;
    font-size:13px;
    -moz-box-shadow: 0 1px 3px #555;
    -webkit-box-shadow: 0 1px 3px #555;
    text-shadow: 0 1px 1px #fff;
}
ul.menuaple li a.hover{
    background-image:none;
    color:#fff;
    text-shadow: 0 -1px 1px #000;
}
ul.menuaple li a.first{
    -moz-border-radius:0px 0px 0px 10px;
    -webkit-border-bottom-left-radius: 10px;
    border-left:none;
}
ul.menuaple li a.last{
    -moz-border-radius:0px 0px 10px 0px;
    -webkit-border-bottom-right-radius: 10px;
}
ul.menuaple li span{
    width:64px;
    height:64px;
    background-repeat:no-repeat;
    background-color:transparent;
    position:absolute;
    z-index:-1;
    top:80px;
    cursor:pointer;
}
ul.menuaple li span.Home{
    background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil9OqRVpYoLViSVBJwptZhmGDTWd82bTt5ZO2WXjT52uxOkhuxg-96RPcerVinXwscnpe8cat-dQpFxl00a3LXI4f8-m40zqdsuI46hf8-3ZUCenahQ7QSDcexIQmEzTXJumKDguiiFyg/s1600/home.png);
    left:33px; /*128/2 - 32(half of icon) +1 of border*/
}
ul.menuaple li span.About{
    background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSgw_4Vtq2Oi1OJIxVVFk6q8-h0cipJ1wRuYDqnsnU5ufI7EG_Mcriw5HXO6VCkfjPsxUnow1bBg7dv2zjmR-2casiASCedz_An68sKipKkVLMViysDVSpbuhYmD8S8JJmyb8pOr8Jfqc/s1600/about.png);
    left:163px; /* plus 128 + 2px of border*/
}
ul.menuaple li span.Email{
    background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2PJ9BXbAz7BW1N7jwpRcPbSlqgtYPwlnyN3sYddbAeMOfOEWX-QEKLHpYsPctzivAahu-d7BMH2U9jLIqgN1nLrbsW_5OE_yfeFinV_YhSGdwoAVEAk03YZnQQTHGfNnJXnVlsdq2HOk/s1600/email.png);
    left:293px;
}
ul.menuaple li span.Portofolio{

  • selanjutnya simpan script berikut diatas kode </body> :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

        <script type="text/javascript">
            $(function() {
                var d=1000;
                $('#menuaple span').each(function(){
                    $(this).stop().animate({
                        'top':'-17px'
                    },d+=250);
                });

                $('#menuaple > li').hover(
                function () {
                    var $this = $(this);
                    $('a',$this).addClass('hover');
                    $('span',$this).stop().animate({'top':'40px'},300).css({'zIndex':'10'});
                },
                function () {
                    var $this = $(this);
                    $('a',$this).removeClass('hover');
                    $('span',$this).stop().animate({'top':'-17px'},400).css({'zIndex':'-1'});
                }
            );
            });
        </script>

  • yang terakhir pemanggilan pada Html :

<div class="navigationaple">
<ul class="menuaple" id="menuaple">
<li><span class="Home"></span><a class="first" href="#">Home</a></li>
<li><span class="About"></span><a href="#">About</a></li>
<li><span class="Email"></span><a href="#">Email</a></li>
<li><span class="Portofolio"></span><a class="last" href="#">Portofolio</a></li>
</ul>

</div>


  • dan selesai...

Komentar :

ada 0 komentar ke “Fancy Apple-Style Icon Slide Out Navigation”

Posting Komentar

Emoticon

:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
 

Siga-me

This Blog is proudly powered by Blogger.com | Template by Angga Leo Putra