Sliding Reactions

Little example on recreating Facebook / LinkedIn sliding reactions as you long press and pan your finger left and right.

Taking advantage of the distance() function, the Pan trigger and the location of your finger.

All the logic is inside the component, so will carry it over to any instance.

Hope you like it!


Leave a Reply

Your email address will not be published. Required fields are marked *


You may also enjoy…