From: Anthony Talarico Date: Mon, 23 Nov 2015 18:45:46 +0000 (-0500) Subject: toggle animation not working X-Git-Tag: v1.0.0^2~275 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=08e088ca67fd922892a4f462d9693cf3e495e05d;p=WP-Themes%2Fstaffords.git toggle animation not working --- diff --git a/js/app.js b/js/app.js index 9f713c9..e4fe87b 100644 --- a/js/app.js +++ b/js/app.js @@ -211,7 +211,18 @@ $(document).ready(function () { $(".searchform").animate({width: 'toggle'}, 1000); $("li a.search").css("visibility", "hidden"); $('.searchform').css("left", "5px"); + $(".searchform input[type='text']").focus(); }); + $(".searchform input[type='text']").blur(function () { + $(".searchform").animate({width: 'toggle'}, 1000); + $('.searchform').css("right", "5px"); + $("li a.search").css("visibility", "visible"); + }); + + + + +