Jump to content
Search Community

SVG mask height on swipe down

fd_alistair test
Moderator Tag

Recommended Posts

Hi there - I'm trying to simulate the slicing of vegetables with a downwards swipe and I'm really struggling to find a viable solution - I have had a look at the below post but it's not quite what I'm after. I need to have multiple points of swipe down, fix it so you can only go down (not back up) and then have an event once each one is complete.

 

I believe this can be done with SVG masking what is the background (or chopping board) on top of the vegetable.

 

Any help would be appreciated.

 

 

Screen Shot 2021-01-26 at 12.37.56.png

Link to comment
Share on other sites

Hey fd_alistair. A few questions about your end goal:

  1. Are there set points of where users will be able to do this? or can it be anywhere along the object?
  2. Is there a limit of how many "cuts" a user can make?
  3. Are you simply wanting to cover the original object (i.e. layering) or does it actually need to cut up the original shape into multiple shapes?
  4. How does the user specify where to make a cut? A pre-made draggable? A click/touch somewhere? Something else?

Once we have a better picture of what you're really needing perhaps we can help lead you towards a relevant solution.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...