Home » » Fancy Apple-Style Icon Slide Out Navigation

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/AVvXsEhUYMc6DY8RNtq3fq4gp6l-_kS3CuvlDirJwhsci0kf-NqUYHdcZjF2p2KHP9HlA6ACPvcWL3bzQEPU7OSLz-tl-y8hbZEGXdOYy3MdBKYRRFZCrPbPfa1PHQH0V8FEi2OhgeifwVPFsEM/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/AVvXsEjGjqLP-DRPSZoupXuNKNfgUzGKWjeAgo2-xtyljOKyeWHZ7eMSNCnTSI5zK4SGV4f38AOWCzgmZN6c-P3dG7rhvxGo5VcGkLN7Q1ciQHDHL4y6E8mNx6aWUBf8S03wFbc-iTuMR7lzphM/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/AVvXsEi1w_ruqdvVbOuuS4XbEWemhVtG6Q8Y-63ra2o2tyXSKfIqT8f-URS3z6KlYvKWTzqs5HyXBTdGAdaz8_XrNecskMVVs2Drq8AE-hM0Sppx4AuMFBorvsvR-gXoKTUDh_li_CJ3kCgZgHs/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/AVvXsEjuFUeJVdFBxivH4ze6QebBCvpO0D1FrBdJsuQu5KnTn6NhzeDKSCjlXvD0uhI8amoVHEuzrG3eRLlGXjnnQKFyRG19fvRsVNM-UJkgb4yW6O7PdFGL6QeebltbEAQZaa3QPlAxYe7_WCY/s1600/email.png);
    left:293px;
}
ul.menuaple li span.Portofolio{
    background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJq6iYVqpPiXk77EdYFCH20z4jTVcwj0vUXC4bMu-ONocfAPFNwrh-RRRsHmPtXl4cB0daDfbZn2Uv2BXh8ty8yfSsmBTNipDVPYlO0_Fl1VbWz5ZcFIS2koW7gGidQtDe0U1t0vfp_U/s1600/portofolio.png);
    left:423px;
}
  • 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>

  • Save
Share
Related Post

0 comments:

Archives

Label


ShoutMix chat widget
Guest Book
 

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog

Show

Exploration


Show

[Valid Atom 1.0]
Google PageRank Checker Powered by  MyPagerank.Net

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net

Show

Show

Exploration

Welcome To My Blog

I hope you find what you're looking for here . . Thank you for visit to my simple blog . .

Rizky Maulana

This life is a sacrifice and struggle . . and I am just a man who wants to be better than ever . .