Crea un tooltip con Elementor y CSS

Código HTML

				
					<span class="tooltip-container">?<span class="tooltip">Seleccione una ubicación cercana a usted o al visitante de su sitio web.</span></span>
				
			

Código CSS

				
					.tooltip-container {
    cursor: pointer;
    position: relative;
    display: inline-block;
    background-color: #FFF;
    font-weight: 500;
    border: 1px solid #4B5064;
    border-radius: 45%;
    color: #5332B7;
    line-height: 0;
    font-size: 10px;
    vertical-align: middle;
    top: -1px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 4px;
    padding-left: 4px
   
    
    
}
.tooltip {
    opacity: 0;
    z-index: 99;
    color: #FFF;
    font-family: poppins;
    width: 190px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    background: #5332B7;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    position: absolute;
    right: -89px;
    bottom: 25px;
}
.tooltip:before,.tooltip:after {
    content: url('exclamation.svg')
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #5332B7;
    position: absolute;
    bottom: -10px;
    left: 45%;
}
.tooltip-container:hover .tooltip,a:hover .tooltip {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
				
			
Scroll al inicio