I am currently working on a page where I have an image with a pointer down icon. When the user hovers over it, a list of products should be displayed and the pointer should compress. Everything is functioning correctly except for the animation aspect. I am utilizing JQuery methods:
$(".product_picker").mouseenter(function () {
$(this).parent(".catalog_element").css({"border": "2px solid #676f7c","border-radius": "3px"});
$(this).find(".fb_content").css({"display": "block"});
$(this).find(".pointer_down").css({"transition": "all 0.5s","cursor": "pointer","height": "1px"});
});
$(".catalog_element").mouseleave(function () {
$(this).css("border", "0px solid #676f7c");
$(this).find(".fb_content").css({"transition":"all 0.5s","display": "none"});
$(this).find(".pointer_down").css({"transition": "all 0.5s","cursor": "pointer","height": "auto"});
});
The product_picker element is a division with a pointer down image, and I am attempting to scale it using CSS properties but without any smooth animation effect. I initially included "transition": "all 0.5s" thinking it would provide the desired result, however, it did not work as expected. What could I be missing or how can I achieve a smoother transition?