Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashutosh1919/react-liquidswipe

🚀 Smooth Liquid Swipe Animation to transition between different components.
https://github.com/ashutosh1919/react-liquidswipe

animation animation-css animation-library best-website css3 gatsby-animations gatsby-site gatsby-sites gatsbyjs html5 liquidswipe react-animation-library react-liquid-swipe react-liquidswipe react-spring react-use-gesture reactjs

Last synced: 3 days ago
JSON representation

🚀 Smooth Liquid Swipe Animation to transition between different components.

Awesome Lists containing this project

README

        



🚀 React LiquidSwipe


Very smooth component transition animation with liquid swipe effect.



NodeJS
NPM
Made With Gatsby
code style: prettier


Netlify Status
Build Status
License
Maintenance
Website
License
Price

Loved the project? Please consider donating to help it improve!


If you want to discuss about something, then you can ask on my Discord Server.





:star: Star us on GitHub — it helps!
To view a live example, [click here](https://liquidswipe.netlify.app/)

**React LiquidSwipe** is created using physics based animation libraries `react-spring` and `react-use-gesture`.

# Use in your website ✏️

Liquid swipe effect is created considering reusability in mind. As of now, there is no `npm` or `yarn` package that you can install because there are several major issues with this package and they are mentioned in the later section of this file. Once, those errors are addressed, we can wrap the component as `npm` or `yarn` package.

If you want to use this animation in your website, you can clone the repository and you can copy the file `src/components/liquidswipe.js` in your project.

To use the component, your code should look like below.

```javascript
import { LiquidSwipe } from '';
...
export const YourComponent = () => {
var componentsToRender = [] // Add components you want to render.
var backgroundColors = [] // Add background colors for each component.
...
return (
...

...
);
}
```

As of now, the mass and tension of the animation drag is constant and is defined in `liquidswipe.js` file but it may be a changeable parameter in the future version.

If you think that this documentation is not enough for you to understand, I have given other resources links in the [`Important Links`](#important-links-) section.

# Technologies Used 🛠️

- [GatsbyJS](https://www.gatsbyjs.com/)
- [React Spring](https://www.react-spring.io/)
- [React UseGesture](https://use-gesture.netlify.app/)
- [Styled Components](https://styled-components.com/)
- [Prettier](https://prettier.io/)
- [Theme UI](https://theme-ui.com/)
- [React Icons](https://react-icons.github.io/react-icons/)

# 3D Clay Device Illustrations 🍥

- [Shapefest](https://www.shapefest.com/)

# Important Links 📑

- [Github Repository - It contains the ReactJs implementation of LiquidSwipe](https://github.com/ashutosh1919/react-liquidswipe)
- [YouTube Video - How it is built and how you can use it in your website](https://youtu.be/uGoWVz-q2M8)
- [Behance Design](https://www.behance.net/gallery/110526825/Apple-Clay-Devices-Showcase-with-LiquidSwipe-Animation)
- [Dribbble Shot](https://dribbble.com/shots/14856679-Apple-Clay-Devices-Showcase-with-LiquidSwipe-Animation)

# Caution ☠️

This project is still under development and has many issues with it. We have only achieved animation. We need to handle the side effects which it has generated. So, I would humbly suggest you not to use this animation in below cases.

- The animation uses dynamic rendering. So, globally rendered background colors by any theming library (styled-components, emotion, theme-ui) will not work. You can use theming libraries for all purposes other than changing colors.
- Currently it is not working in mobile and tablet screens since click is not available and tap animation code has to be added.

If you think you can solve any of the above problems then we will highly appreciate you to raise the pull request.

# License 📄

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/ashutosh1919/react-liquidswipe/blob/main/LICENSE) file for details.
You can use this project for personal as well as commercial purposes. But if you think you have modified the project and built something really good, we will humbly request you to raise the pull request and share with the opensource community.

# Contributing 💡

If you can help us with these. Please don't hesitate to open an [pull request](https://github.com/ashutosh1919/react-liquidswipe/pulls) or [issue](https://github.com/ashutosh1919/react-liquidswipe/issues). If you want to know about how to create pull request, then please refer to [this blog](https://opensource.com/article/19/7/create-pull-request-github).

I have mentioned issues with the current implementation in the Caution section. We are highly appreciating you to raise the pull request to resolve some/all the issues.

# Donate 💉

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can use this project for personal and commercial purpose for free.

However, if you are using this project and happy with it or just want to encourage me to continue creating stuff, there are few ways you can do it :-

- Giving proper credit when you use this on your project, linking back to it :D
- Starring and sharing the project 🚀
- You can make one-time donations by clicking the buttons below. I'll probably buy an amazing workstation which will help me build more aggressively.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/paypalme/devsense19) Buy Me A Coffee

# Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Ashutosh Hathidara

💻 📖 🎨 🤔 🚧

Andre Rodrigues Lima

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

# References 👏🏻

- [Cuberto Design Agency has created an original design concept](https://dribbble.com/shots/10680562-UI-Design-Course-3-Liquid-Swipe-After-Effects-Animation-2020)
- [React Native implementation by William Candillon](https://www.youtube.com/watch?v=gLopy2MCAqM)
- [A codepen by Yugam](https://codepen.io/pizza3/pen/LYGQOBo)