Jump to content
Search Community

How do I snap after scroll and snap from buttons

FrEZ test
Moderator Tag

Recommended Posts

16 minutes ago, Cassie said:

Hi there!

 

Here's a possibility?

 

You could tween the progress of the animation. I just added a random position in here, you'd have to work out the positions and add the correct numbers in for each event listener!
 

 

Can't I use the snap method somehow?

Link to comment
Share on other sites

Well these are two separate questions really.

- snap to the closest position after drag

 

- spin to the corresponding position by pressing the li elements

 

I'm not all too sure how to help with snapping to a card after throwing. Maybe someone else can jump in!

Link to comment
Share on other sites

On 1/23/2023 at 2:58 AM, Cassie said:

Well these are two separate questions really.

- snap to the closest position after drag

 

- spin to the corresponding position by pressing the li elements

 

I'm not all too sure how to help with snapping to a card after throwing. Maybe someone else can jump in!

I opened a new topic because I explained the problem more in detail there. Also I didn't get an answer here. I will ask once again, can you please not close my topic? It's not a duplicate as it is a different codepen with a similar issue, but not quite the same as it goes into more detail.

Take care!

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...