Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Bubbles-Chats"
Bootstrap 4.1.1 Snippet by
alexanderpineda
4.1.1
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
729
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div id="contenedor-burbujas"> <div class="row burbuja-chat" id="burbuja-chat"></div> <a href="https://wa.me/573132768907" target="_blank"> <div class="row burbuja-mensaje" id="burbuja-mensaje"></div> </a> <a href="https://wa.me/573132768907" target="_blank"> <div class="row burbuja-whatsapp" id="burbuja-whatsapp"></div> </a> </div>
.burbuja-chat { width: 3.5em; height: 3.5em; position: fixed; top: 50%; left: 1em; z-index: 2000; background-color: #3599dc; background-image: url(https://cdn3.iconfinder.com/data/icons/social-media-circle-flat-1/1024/twitch-01-01-512.png); background-size: cover; border-radius: 50%; color: #fff; transition: all ease 300ms; cursor: pointer; } .burbuja-chat-mouseover { background-color: #043c6dca; width: 3em; height: 3em; } .burbuja-mensaje { width: 1em; height: 1em; position: fixed; top: 48%; left: 1.7em; z-index: 2000; border-radius: 50%; color: #fff; background-color: #3599dc; background-image: url(https://cdn3.iconfinder.com/data/icons/social-media-circle-flat-1/1024/wechat-01-01-512.png); background-size: cover; transition: all ease 400ms; visibility: hidden; } .burbuja-whatsapp { width: 1em; height: 1em; position: fixed; top: 53%; left: 4.5em; z-index: 2000; border-radius: 50%; background-image: url(https://cdn3.iconfinder.com/data/icons/social-media-circle-flat-1/1024/whatsapp-01-01-512.png); background-size: cover; color: #fff; background-color: #3599dc; transition: all ease 400ms; visibility: hidden; } .burbuja-mensaje-visible { width: 3.5em; height: 3.5em; position: fixed; top: 44%; left: 3.6em; z-index: 2000; border-radius: 50%; color: #fff; background-color: #f46f30; visibility: visible; transition: all ease 400ms; } .burbuja-whatsapp-visible { width: 3.5em; height: 3.5em; position: fixed; top: 54.7%; left: 3.6em; z-index: 2000; border-radius: 50%; color: #fff; transition: all ease 300ms; background-color: #24cd63; visibility: visible; transition: all ease 400ms; } .burbuja-mensaje-visible:hover { transform: scale(1.3); } .burbuja-whatsapp-visible:hover { transform: scale(1.3); } @media screen and (max-width: 500px) { .burbuja-chat { display: none; } .burbuja-mensaje { width: 2.7em; height: 2.7em; position: fixed; top: 47%; left: 1em; z-index: 2000; color: #fff; background-color: #f46f30; transition: all ease 400ms; visibility: visible; } .burbuja-whatsapp { width: 2.7em; height: 2.7em; position: fixed; top: 54%; left: 1em; z-index: 2000; color: #fff; background-color: #24cd63; transition: all ease 400ms; visibility: visible; } } @media screen and (max-height: 400px) { .burbuja-mensaje-visible { top: 40%; left: 3.6em; } .burbuja-whatsapp-visible { top: 57.5%; left: 3.6em; } }
let contenedorBurbujas = document.querySelector("#contenedor-burbujas"); let burbujaChats = document.querySelector("#burbuja-chat"); let burbujaMensaje = document.querySelector("#burbuja-mensaje"); let burbujaWhatsapp = document.querySelector("#burbuja-whatsapp"); contenedorBurbujas.addEventListener("mouseenter", () => { burbujaChats.classList.add("burbuja-chat-mouseover"); burbujaMensaje.classList.add("burbuja-mensaje-visible") burbujaWhatsapp.classList.add("burbuja-whatsapp-visible"); }) contenedorBurbujas.addEventListener("mouseleave", () => { burbujaChats.classList.remove("burbuja-chat-mouseover"); burbujaMensaje.classList.remove("burbuja-mensaje-visible"); burbujaWhatsapp.classList.remove("burbuja-whatsapp-visible"); })
Related:
See More
Free Template
Material Dashboard Angular
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76