I'm using jquery to trigger with a div's hover another div's resize:
$("#lggroup").hover(function()
{
$("#register").css("width", "200px");
}, function()
{
$("#register").css("width", "0px");
});
The second div has a transition effect upon it that doesn't affect the change initially but it does after the second hover.
transition: width 0.25s;
Although not breaking, the sudden width expand has an unpleasing effect.
Fiddle: https://jsfiddle.net/tu9keje5/1/
You can see that initially after running the fiddle, the main div expands suddenly because of the gray div expanding suddenly. Afterwards the transition kicks in fine. Any workarounds or causes for this?