Hi I am working on svg base map in which I highlight some specific location and when user mouse hover on it it pop the name of location and also color change, now my client need drop shadow effect on that when user mouse hover on it its color change and also drop shadow effect apply. Here is my code.
The svg code
<path id="Middle East Region" class="enabled" fill="#21669E" stroke="#FFFFFF" stroke-width="0.75" d=""</path>
<script>
$description = $(".description");
$('.enabled').hover(function() {
$(this).attr("class", "enabled heyo");
$description.addClass('active');
$description.html($(this).attr('id'));
}, function() {
$description.removeClass('active');
});
$(document).on('mousemove', function(e){
$description.css({
left: e.pageX,
top: e.pageY - 70
});
});
</script>
Here is the css
.heyo:hover {
fill: #CC2929;
-moz-transition: 0.3s;
-o-transition: 0.3s;
-webkit-transition: 0.3s;
transition: 0.3s;
}