FERMER LE MENU


Menu général de Wifeo :

Accueil de Wifeo

Connexion

Créer un site

Nouveautés Wifeo

Blog

Forum

Boite à outils

Documentations

Wifeo Creative Code


<<< back to homepage for others creatives tricks

MOBILE CSS CIRCLE MENU

 
 
 
 
 
 
BLOGGERS, SHARE THIS CREATIVE DEMO ON YOUR WEBSITE :
<p data-height="360" data-theme-id="9277" data-slug-hash="OPWZYN" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href='http://codepen.io/wifeo/pen/OPWZYN'>Codepen</a> <script async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href="http://www.wifeo.com/code/55-mobile-css-circle-menu.html">wifeo/code</a></div>
On Facebook
On Twitter
On Google+
On LinkedIn

CSS CODE :

.contener div
{
  -webkit-transition:all 0.6s ease;
  -moz-transition:all 0.6s ease;
  -ms-transition:all 0.6s ease;
  transition:all 0.6s ease;
}
.contener
{
  position:absolute;
  top:120px;
  margin-left: 50%;
  left:-35px;
}
.bouton_click
{
  width: 70px;
  height: 70px;
  background-color:#5b072b;
  box-shadow: 2px 2px 9px #000000;
  background-position: center;
  background-repeat:no-repeat;
  position:absolute;
  z-index: 5;
  border-radius: 50%;
}
.bouton_click_on
{ 
  cursor:pointer;
  background-image: url(http:YOUR-URL-IMAGE.png);
}
.bouton_click_off
{
  background-image: url(http:YOUR-URL-IMAGE.png);
}
.circle
{
  background-position: center;
  background-repeat:no-repeat;
  width: 70px;
  height: 70px;
  background-color:#901147;
  border-radius: 50%;
  position:absolute;
  z-index: 4;
}
.bouton_ctr
{
  width: 66px;
  height: 66px;
  border:2px solid #901147;
  position:absolute;
  z-index: 2;
  border-radius: 50%;
}
.bouton_ctr_af
{
  width: 240px;
  height: 240px;
  border:2px solid #901147;
  margin-top: -85px;
  margin-left:-85px;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
}
.circle_back{background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_back_af{cursor:pointer; margin-left:-120px;background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_more{background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_more_af{cursor:pointer; margin-left:120px;background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_option{background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_option_af{cursor:pointer; margin-top:-120px;background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_down{background-image: url(http:YOUR-URL-IMAGE.png);}
.circle_down_af{cursor:pointer; margin-top:120px;background-image: url(http:YOUR-URL-IMAGE.png);}

JAVASCRIPT CODE :

$(document).ready(function(){

  $(".bouton_click").click(function()
  {
        $( ".bouton_click_on" ).removeClass( "bouton_click_on" ).addClass( "bouton_click_off" );
        $( ".circle_back" ).removeClass( "circle_back" ).addClass( "circle_back_af" );
        $( ".circle_more" ).removeClass( "circle_more" ).addClass( "circle_more_af" );
        $( ".circle_option" ).removeClass( "circle_option" ).addClass( "circle_option_af" );
        $( ".circle_down" ).removeClass( "circle_down" ).addClass( "circle_down_af" );
        $( ".bouton_ctr" ).removeClass( "bouton_ctr" ).addClass( "bouton_ctr_af" );
    
  });

  $(".circle").click(function()
  {
        $( ".bouton_click_off" ).removeClass( "bouton_click_off" ).addClass( "bouton_click_on" );
        $( ".circle_back_af" ).removeClass( "circle_back_af" ).addClass( "circle_back" );
        $( ".circle_more_af" ).removeClass( "circle_more_af" ).addClass( "circle_more" );
        $( ".circle_option_af" ).removeClass( "circle_option_af" ).addClass( "circle_option" );
        $( ".circle_down_af" ).removeClass( "circle_down_af" ).addClass( "circle_down" );
        $( ".bouton_ctr_af" ).removeClass( "bouton_ctr_af" ).addClass( "bouton_ctr" );
    
   
  });

});

HTML CODE :

<div align="center" style="position:relative; height:300px;">
  <div class="contener">
      <div class="bouton_click bouton_click_on">&nbsp;</div>
      <div class="bouton_ctr">&nbsp;</div>
      <div class="circle circle_back">&nbsp;</div>
      <div class="circle circle_more">&nbsp;</div>
      <div class="circle circle_option">&nbsp;</div>
      <div class="circle circle_down">&nbsp;</div>
  </div>
</div>


COMMENT THIS CREATIVE CODE

comments powered by Disqus

Difficulty level :
hard :
medium :
easy :
very easy :
Soigner ses interfaces utilisateur est primordial. Cela passe en partie par l'utilisation de "tricks" et animations CSS/jQuery.

Nous avons choisi de partager sous licence libre creative commons nos astuces et développements de tous les jours afin d'échanger, mais aussi de faciliter la vie des développeurs.
Wifeo Creative Code est un concentré de nos développements quotidiens: servez-vous, utilisez-les et adaptez-les sans aucune restriction. N'hésitez pas à les partager avec vos contacts !
Creative Commons License
Open code base by Wifeo is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at http://www.wifeo.com/code.
Permissions beyond the scope of this license may be available at http://www.wifeo.com/contact-wifeo.php.


Nous soutenons : Secours Populaire . Enfants du desert . Medecins Sans Frontieres
Copyright © Wifeo.com - Tous droits réservés BOURDET SARL R.C.S.503777286 VERSAILLES