toggle animation not working
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 18:45:46 +0000 (13:45 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 18:45:46 +0000 (13:45 -0500)
js/app.js

index 9f713c9..e4fe87b 100644 (file)
--- 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");
+    });
+   
+    
+    
+
+