Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook overlay animation

Facebook is adding some new animation from last few updates. On selecting particular status text like (Xoxo , harry porter, celebration) , Some animations are appearing like below image:

enter image description here

You can check once we click on "Xoxo" word, Some hearts will appear for 1-2 second on screen with animation. I can't figure what mechanism facebook is using to make this work. Can anyone have any idea regarding this animation code ? Which component Facebook is using to show ? How can we integrate in our project? some hint or idea will make my day.

like image 585
Harsh Trivedi Avatar asked Aug 04 '17 06:08

Harsh Trivedi


1 Answers

After few days of research, I found some good code examples on Github which almost full fill above functionality. They are using Canvas for the animation. Below are some links for reference:

1.https://github.com/DanielMartinus/Konfetti?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=5884

2.https://github.com/plattysoft/Leonids

like image 196
Harsh Trivedi Avatar answered Nov 03 '22 12:11

Harsh Trivedi