I managed to get the input field to slip out when I hover over the text โSearchโ in the input field. BUT, I would prefer the slide animation to be enabled using the "GO" button (send too).
input
Fiddle
I wanted to change the .search input {width:80px;} to 30px so that the input field was hidden until the search button hangs, but I'm not sure how to make this button only trigger this animation.
.search input {width:80px;}
30px
Try this helper: http://jsfiddle.net/7yAv7/10/
What I did was change the .search input:hover selector to .search:hover input .
.search input:hover
.search:hover input
This means that if you hover over any part of the .search container, the input must be disabled.
Not 100% of what you wanted, but hopefully it helps as a starting point.
Personally, I would use jQuery hover as follows:
$('.srch_btn').hover(function(){ $('.search input').css('width', '200px'); }, function(){ $('.search input').css('width', '30px'); });โ
You can only do this in css by setting the opacity to 0 for an inactive state:
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0; -khtml-opacity: 0; -webkit-opacity: 0; opacity: 0;
Working demo here: http://jsfiddle.net/7yAv7/7/
EDIT: when only hovering the go button: http://jsfiddle.net/7yAv7/8/
Source: https://habr.com/ru/post/1446380/More articles:how to use a business identity provider (such as ADFS2) - asp.net-mvc-4How to create a CSV file in asp.net? - c #export datatable to CSV using the Save File dialog box - C # - c #Tumblr XML not loading - phpHow to calculate and verify the amount and repeat the action - rSelect specific Tumblr XML values โโusing PHP - xmlusing strdup - cThe difference between System.copy and StrUtils.MidStr - delphiThe object does not have a getColumnType error method - javascriptHow to remove text from selected text that is loaded by default on a page? - javascriptAll Articles