An interactive demo of an iOS 26βstyle Liquid Glass effect for the web.
Tweak inner shadows, tint, frost blur, noise distortion, and swap out the background imageβall live in your browser.
Try it out here β https://liquid-glass-eta.vercel.app/
index.html
in Chrome on macOS. Note that this has not been tested on Safari.To get started, follow these steps:
Clone the Repository: Use the following command to clone the repository to your local machine.
git clone https://github.com/omer42009/liquid-glass.git
Navigate to the Directory: Change into the project directory.
cd liquid-glass
Open the HTML File: Launch the index.html
file in Chrome.
You can do this by dragging the file into your Chrome browser or by using the File > Open
menu in Chrome.
Explore the Features: Use the controls provided in the demo to adjust the effects. Play around with the inner shadow, glass tint, frost blur, and more.
You can customize the Liquid Glass effect to fit your needs. Hereβs how:
This project uses basic HTML, CSS, and JavaScript. There are no external libraries required.
If you encounter any issues or have suggestions for improvements, please file an issue on the Issues page. Your feedback is valuable and helps improve the project.
Contributions are welcome! If you would like to help improve the Liquid Glass effect, please follow these steps:
Fork the Repository: Click the "Fork" button at the top right of the repository page.
Create a New Branch: Make a new branch for your feature or bug fix.
git checkout -b feature/your-feature-name
Make Your Changes: Edit the files as needed.
Commit Your Changes: Save your changes with a descriptive commit message.
git commit -m "Add your message here"
Push to Your Fork: Push your changes to your forked repository.
git push origin feature/your-feature-name
Open a Pull Request: Go to the original repository and open a pull request. Describe your changes and why they are beneficial.
For a list of changes and updates, please check the Releases section. This will help you stay informed about the latest features and fixes.
Currently, the Liquid Glass effect works only on Chromium (Blink) based browsers. This includes:
Note: It does not work on WebKit or Gecko browsers, such as Safari or Firefox.
Hereβs a brief overview of the project structure:
liquid-glass/
βββ index.html # Main HTML file
βββ styles.css # Styles for the demo
βββ script.js # JavaScript for interactivity
This project is licensed under the MIT License. See the LICENSE file for details.
For more information on CSS effects and web design, consider checking out the following resources:
Feel free to explore the Liquid Glass effect, customize it to your liking, and share your creations! If you have any questions or need assistance, donβt hesitate to reach out. Enjoy!