I am attempting to implement a circular reveal animation to display the search toolbar in my web application using CSS and JavaScript. My goal is to achieve a similar effect as seen on Whatsapp for Android.
https://i.sstatic.net/YE242.jpg I have successfully created an expanding circle animation. If you view the demonstration, you will see that I defined the final width and height of the circle and utilized
transform: scale(0.0033) to scale(1)
to prevent blurriness.
However, I am encountering certain issues:
- Unable to make the circle expand from the search icon.
- The back icon and search input are not visible when the circle enlarges. My approach involves covering the content with a div that moves to the left simultaneously with the expanding circle revealing the content.
- On mobile devices, the search does not expand from the same position as on a PC.
- The circle fails to cover the entire toolbar.
I have tried various techniques and conducted extensive research online without any success. I believe that professional developers and coders here can offer superior solutions to my problem. This is the
DEMO
website for your reference.