From our sponsor: Elevate all your marketing with Mailchimp Smarts.
Today we’d like to share a simple morphing effect with you. The idea is to have a search input in the upper right corner of the page and once the input is clicked, the whole search element expands to a fullscreen overlay. The fullscreen overlay has a bigger search input and some elements for showing related items or the search results. Note that we just made a dummy that does not actually search dynamically.
For the morphing search effect we use several transitions that animate the dimensions of the search input, the font size and some other elements. Please note that it’s very experimental and only tested in the latests versions of modern browsers.
The background image used in the demo is from Unsplash and the icons are from Font Awesome.
The search input is located in the top right corner of the page:
When clicking on the input, it will expand to the fullscreen overlay while increasing the font size of the search input and showing some relevant content or search results:
Please note that there are no transitions on the content elements in the fullscreen search in Firefox (latest version 33.0.2/Mac) due to a bug. This bug has to do with changing the overflow of the animated element’s parent. Please read more about it here: Firefox transitions breaking when parent overflow is changed
We hope you enjoyed this little experiment and find it inspiring.
Great! Thank you.
This is what I like.. flexible to use if you have something to search it can morph into a fullscreen.
It looks like a concept from Windows 8 dynamic search. But I must say that from the design perspective it is much, much better. Nicely done ๐
Hi Mary,
There is no doubt is’t a very good front-end element for Web designers ๐
But i notice one thing we can’t use it twice in one page .
Example: if i customize it and create an wordpress widget then it’s not work in more then one widget area
So is there any way to fix it.!!
Many thanks for this POST
Hello @Niloy,
If you are still interested, I’ve just made a plugin out of it.
https://wordpress.org/plugins/full-screen-morphing-search/
SYA ๐
You can see this exact same effect on
http://www.myspace.com – really, I am serious – myspace still exists ; )
They use this since they relaunched.
My bad, the myspace search do not morph – it’s only the overlay…
Hello Mary!
This is Awesome!
It’s possible use this plugin inside of the container 960px position:relative? I try but he only open to 960px.
You can help?
Thanks!
Hello Mary,
Superb content, love it.
Gavin
Any ideas to expand this with wordpress compability ?
Hello @ohhko,
If you are still interested, I’ve just made a plugin out of it.
https://wordpress.org/plugins/full-screen-morphing-search/
SYA ๐
Would be cool to have this done for WordPress, thanks for any ideas how to realize that in advance.
Hello @Roman,
If you are still interested, I’ve just made a plugin out of it.
https://wordpress.org/plugins/full-screen-morphing-search/
SYA ๐
How can I use it on WordPress CMS ??
Hello @TemPo,
If you are still interested, I’ve just made a plugin out of it.
https://wordpress.org/plugins/full-screen-morphing-search/
SYA ๐
To everyone asking about WordPressโit’s simple: just apply the styles and scripts to your markup as you would on a static HTML site. The only difference is that you’ll want to use the WordPress search form like so:
<form class="morphsearch-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input class="morphsearch-input" type="search" placeholder="Search" name="s" id="s" />
<input class="morphsearch-submit" type="submit" id="searchsubmit" value="Search" />
</div>
</form>
Hello @Cameron
Not at all !
Apllying original scripts and styles and calling the default WP search form will not do the trick at all ! Did you try to do it ?
You can take a look how I’ve done it
https://wordpress.org/plugins/full-screen-morphing-search/
Some CSS rules are added other slightly modified and some other removed !
The JS is not the same at all, I’ve even removed all the JS here !
SYA ๐
Really cool stuff ! Does anyone knows how to “launch” the search using a button ?
I want to launch the “bigger” search screen using a button without having to display the “smaller” search input box !
Thanks in advance for any help !
amazing..
Saddly it doesn’t work with fixed position on ios
trying to get this to work with jquery’s autocomplete (with jQuery UI) and having some problems. any insight? is it because it is hidden initially?
COuld you find a solution after all?
Hello Mary Lou,
Big fan of your GREAT work.
I’ve just made a WordPress plugin out of your fabulous Morphing search Page.
You can take a look at it on the repo :
https://wordpress.org/plugins/full-screen-morphing-search/
If you have any other note that you wish to add, please let me know.
Thanks a lot for your time and all your efforts.
LebCit