Buenas amigo espero esto sea lo que buscas
la idea es agregar un botón que tenga una position:absolute
y así posicionar lo fuera de los demás botones.
- al ejecutar el evento
click
le agregamos la clase del icono correspondiente y le quitamos la del otro icono.
- Despues es agregarle el estilo de css
transform:traslate()
que cuando esta visible le asignamos un -100%
que hace que se oculte hacia la izquierda y si esta oculto le volvemos a poner 0%
Para la funcionalidad de toggle use una variable que cada vez que se hace click
en el botón cambia su valor al contrario del que tiene visible=!visible
esea que si es true
se va a cambiar a false
y viceversa.
saludos espero te ayude amigo .
var visible = true
$("#btn-redes").click(function(){
if(visible){
$(this).removeClass("fa-angle-left");
$(this).addClass("fa-angle-right");
$(".social").css({"transform":"translate(-100%)"})
} else {
$(this).removeClass("fa-angle-right");
$(this).addClass("fa-angle-left");
$(".social").css({"transform":"translate(0%)"})
}
visible=!visible
})
/* CREADO CON AYUDA DE @Flowen */
.btn-toggle {
position:absolute;
top:50%;
transform: translate(0,-50%);
padding: 10px;
padding-left: 55px;
border: 0px;
outline: none;
background: rgb(255, 255, 255);
box-shadow: 3px 0px 10px 0px rgba(0, 0, 0, 0.1);
z-index: 10;
border-radius: 0px 10px 10px 0px;
cursor: pointer;
}
/* Estilos de las pestañas*/
#mostrar{
display:none;
}
*{
margin:0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.social{
position: fixed;
left:0;
top:20px;
z-index: 2000;
transition: all .3s ease;//agregado para animacion
}
.social ul {
list-style: none;
z-index:20;
position:relative;
}
/*.social ul li a {
display: inline-block;
color: #fff;
background: #000;
padding: 10px 15px;
text-decoration: none;
-webkit-transition:all 500ms;
-0-transition:all 500ms;
transition: all 500ms
}*/
.social ul li a {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
display: inline-block;
color: #fff;
background: #000;
padding: 10px 15px;
text-decoration: none;
-webkit-transition:all 500ms ease;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
transition: all 500ms ease;
}
.social ul li .icon-facebook {background: #3b5998 ;}
.social ul li .icon-twitter {background:#00abf0 ;}
.social ul li .icon-youtube {background:#F8030E ;}
.social ul li .icon-google {background: #d95232;}
.social ul li .icon-envelop {background: #666666 ;}
.social ul li .icon-blogger2 {background:#F88103 ;}
.social ul li .icon-chevron-left{background: #88F34F;}
.social ul li .icon-chevron-right{background: #88F34F;}
.social ul li a:hover{
padding: 10px 30px;
background: #000;
}
/* Estilos de las fuentes*/
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?fk3lx7');
src: url('fonts/icomoon.eot?fk3lx7#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?fk3lx7') format('truetype'),
url('fonts/icomoon.woff?fk3lx7') format('woff'),
url('fonts/icomoon.svg?fk3lx7#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-email:before {
content: "\e900";
}
.icon-info:before {
content: "\e901";
}
.icon-mail:before {
content: "\e902";
}
.icon-skype2:before {
content: "\e903";
}
.icon-linkedin-with-circle:before {
content: "\e904";
}
.icon-controller-fast-backward:before {
content: "\e913";
}
.icon-chevron-left:before {
content: "\e914";
}
.icon-chevron-right:before {
content: "\e915";
}
.icon-chevron-small-left:before {
content: "\e916";
}
.icon-chevron-small-right:before {
content: "\e917";
}
.icon-chevron-thin-left:before {
content: "\e918";
}
.icon-chevron-thin-right:before {
content: "\e919";
}
.icon-controller-fast-forward:before {
content: "\e91a";
}
.icon-game-controller:before {
content: "\e907";
}
.icon-globe:before {
content: "\e908";
}
.icon-info2:before {
content: "\e905";
}
.icon-location-pin:before {
content: "\e909";
}
.icon-magnifying-glass:before {
content: "\e90a";
}
.icon-mail3:before {
content: "\e906";
}
.icon-old-phone:before {
content: "\e90b";
}
.icon-paper-plane:before {
content: "\e90c";
}
.icon-price-tag:before {
content: "\e90d";
}
.icon-tablet:before {
content: "\e90e";
}
.icon-thumbs-up:before {
content: "\e90f";
}
.icon-google:before {
content: "\e910";
}
.icon-youtube3:before {
content: "\e911";
}
.icon-play:before {
content: "\e912";
}
.icon-envelop:before {
content: "\e945";
}
.icon-location:before {
content: "\e947";
}
.icon-location2:before {
content: "\e948";
}
.icon-bubbles4:before {
content: "\e970";
}
.icon-users:before {
content: "\e972";
}
.icon-cog:before {
content: "\e994";
}
.icon-cogs:before {
content: "\e995";
}
.icon-mail2:before {
content: "\ea84";
}
.icon-mail4:before {
content: "\ea86";
}
.icon-google-plus2:before {
content: "\ea8c";
}
.icon-google-plus3:before {
content: "\ea8d";
}
.icon-facebook:before {
content: "\ea90";
}
.icon-facebook2:before {
content: "\ea91";
}
.icon-telegram:before {
content: "\ea95";
}
.icon-twitter:before {
content: "\ea96";
}
.icon-youtube:before {
content: "\ea9d";
}
.icon-youtube2:before {
content: "\ea9e";
}
.icon-github:before {
content: "\eab0";
}
.icon-blogger2:before {
content: "\eab8";
}
.icon-tumblr2:before {
content: "\eaba";
}
.icon-skype:before {
content: "\eac5";
}
.icon-linkedin:before {
content: "\eac9";
}
.icon-bubble2:before {
content: "\e96e";
}
.icon-fire:before {
content: "\e9a9";
}
.icon-lab:before {
content: "\e9aa";
}
.icon-magnet:before {
content: "\e9ab";
}
.icon-bin:before {
content: "\e9ac";
}
.icon-bin2:before {
content: "\e9ad";
}
.icon-briefcase:before {
content: "\e9ae";
}
.icon-airplane:before {
content: "\e9af";
}
.icon-truck:before {
content: "\e9b0";
}
.icon-road:before {
content: "\e9b1";
}
.icon-accessibility:before {
content: "\e9b2";
}
.icon-target:before {
content: "\e9b3";
}
.icon-shield:before {
content: "\e9b4";
}
.icon-power:before {
content: "\e9b5";
}
.icon-switch:before {
content: "\e9b6";
}
.icon-power-cord:before {
content: "\e9b7";
}
.icon-clipboard:before {
content: "\e9b8";
}
.icon-menu4:before {
content: "\e9c0";
}
.icon-cloud:before {
content: "\e9c1";
}
.icon-cloud-download:before {
content: "\e9c2";
}
.icon-cloud-upload:before {
content: "\e9c3";
}
.icon-cloud-check:before {
content: "\e9c4";
}
.icon-download2:before {
content: "\e9c5";
}
.icon-point-up:before {
content: "\ea03";
}
.icon-plus:before {
content: "\ea0a";
}
.icon-play2:before {
content: "\ea15";
}
.icon-play3:before {
content: "\ea1c";
}
.icon-backward2:before {
content: "\ea1f";
}
.icon-forward3:before {
content: "\ea20";
}
.icon-arrow-right:before {
content: "\ea34";
}
.icon-arrow-left:before {
content: "\ea38";
}
.icon-arrow-right2:before {
content: "\ea3c";
}
.icon-arrow-left2:before {
content: "\ea40";
}
.icon-circle-right:before {
content: "\ea42";
}
.icon-circle-left:before {
content: "\ea44";
}
.icon-google-plus:before {
content: "\ea8b";
}
.icon-facebook3:before {
content: "\ea92";
}
<script src="https://use.fontawesome.com/277a14a9cb.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Social</title>
<link rel="stylesheet" href="redes.css">
<link rel="stylesheet" href="redes-fonts.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<div class="social">
<button id="btn-redes" class="btn-toggle fa fa-angle-left" aria-hidden="true" type="button" name="button"></button>
<ul>
<li><a href="https://www.facebook.com/profile.php?id=100009248037432" class="icon-facebook lateral"></a></li>
<li><a href="https://twitter.com/laparramiguel" class="icon-twitter lateral"></a></li>
<li><a href="http://www." class="icon-youtube lateral"></a></li>
<li><a href="https://plus.google.com/u/0/109747958435546403812" class="icon-google lateral"></a></li>
<li><a href="mailto: [email protected]" class="icon-envelop lateral"></a></li>
<li><a href="https://paseandoporlanubedelared.blogspot.com.es/" class="icon-blogger2 lateral"></a></li>
<!--<li><a href="#" class="icon-chevron-left lateral" onclick="ocultar()"></a></li>
<li><a href="#" class="icon-chevron-right" onclick="mostrar()" id="mostrar"></a></li> -->
</ul>
</div>
<script src="redes.js"></script>
</body>
</html>
Iconos usados para el ejemplo: fontawesome