Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(coverflow) : allow function modifier #5502

Merged
merged 1 commit into from Mar 4, 2022
Merged

feat(coverflow) : allow function modifier #5502

merged 1 commit into from Mar 4, 2022

Conversation

Grafikart
Copy link
Contributor

Why

For a project I need to have a coverflow effect that only zoom on the current Item. The coverflow effect is nice but it's not possible to lessen the scaling effect. With this proposal a custom function can be used as a modifier to handle more complex scaling for the coverflow effect.

Use case

For instance :

modifier: (v) => between(1, -1, Math.round(v))

Would create a scaling that won't affect the elements further they are from the center.

@nolimits4web nolimits4web merged commit 3527355 into nolimits4web:master Mar 4, 2022
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.

None yet

2 participants