var config = {
sensitivity: 3,
interval: 5000,
timeout: 5000,
};
$("#cart-summary").hoverIntent(function () {
$('.flycart').slideDown('fast');
}, function() {
$('.flycart').slideUp('fast');
}).find('a.close').click(function(){
$(this).parents('.flycart').hide();
});
...this works, but two issues:
It doesn't seem to wait 5 seconds like it should, opens almost instantly no matter what I Set.
Affects all elements using the hoverintent plugin on the same page.
I'd really appreciate any help. Thanks!
You're not passing the config object to hoverIntent, so it's using defaults: http://cherne.net/brian/resources/jquery.hoverIntent.html
To clarify,
var config = {
sensitivity: 3,
interval: 5000,
timeout: 5000
};
$("#cart-summary").hoverIntent(function () {
$('.flycart').slideDown('fast');
}, function() {
$('.flycart').slideUp('fast');
}).find('a.close').click(function () {
$(this).parents('.flycart').hide();
}, config);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With