Skip to content

Instantly share code, notes, and snippets.

@diviconnet
Last active September 22, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diviconnet/560abfe47197eed58c0e2d96374e7e5e to your computer and use it in GitHub Desktop.
Save diviconnet/560abfe47197eed58c0e2d96374e7e5e to your computer and use it in GitHub Desktop.
Menu flotante circular en divi estilo ✅ theme orbital 👍#DiviConwordpress
✅ Agregue el el siguiente CSS personalizado a la imagen de Blurb.
margin-bottom:0px;
✅ Luego agregue el siguiente CSS personalizado al elemento principal:
position:absolute !important;
bottom:20px;
left:20px;
✅ En el modo de vista de estructura alámbrica, abra la configuración de blurb (menu hamburguesa)
y agregue la siguiente clase CSS:
CSS Class: transform_target
✅ Las demas imagenes compartirán las mismas clases CSS,
CSS Class: has-transform toggle-transform-animation
⛑ Asegúrese de mantener la etiqueta de estilo envuelta alrededor del CSS y la etiqueta del script envuelta alrededor de JavaScript / jQuery.
✅ Hacer que el botón de menú sea pegajoso (o fijo)
⛑ Debido a que este menú es pequeño e intuitivo para dispositivos móviles, es posible que desee que el menú sea adhesivo para que permanezca fijo en la parte inferior izquierda del navegador.
position: fixed !important;
bottom: 20px;
left: 20px;
<style>
.has-transform, .transform_target .et-pb-icon {
transition: all 400ms ease-in-out;
}
.toggle-transform-animation {
transform: none !important;
}
.transform_target {
cursor: pointer;
}
.toggle-active-target.et_pb_blurb .et-pb-icon {
background-color: transparent;
}
</style>
<script>
(function($) {
$(document).ready(function(){
$('.transform_target').click(function(){
$(this).toggleClass('toggle-active-target');
$('.has-transform').toggleClass('toggle-transform-animation');
});
});
})( jQuery );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment