Skip to content

Make slider animation looping optional - #89

Open
sugoidesune wants to merge 3 commits into
ray-pH:mainfrom
sugoidesune:slider_loop_optional
Open

Make slider animation looping optional#89
sugoidesune wants to merge 3 commits into
ray-pH:mainfrom
sugoidesune:slider_loop_optional

Conversation

@sugoidesune

Copy link
Copy Markdown

This introduces another parameter loop to the slider method.

By default loop = false making slider animations only run once.
If loop is set to true the slider animation will loop and "wrap" around. (current behavior)

I think having the option is rather useful.

The only thing up for debate is what the default behavior should be.
Looking at the examples on the website I think all but one would benefit from not looping, the one exception being the spring oscillation example where looping makes sense.
This is why i set the default to false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant