Skip to content

Get visible elements currently in viewport without groupCells #638

@yesh

Description

@yesh

Hi @desandro ,

don't know if it is supported in some way, but I wanted to ask help with a issue I'm trying to solve:

I have a carousel with multiple visible elements and wanted to get the current visible elements. in the flickity-viewport.

I can achieve this using groupCells and using the .is-selected class attached to the element in the group.

the problem is that I need the slider to move by one element at a time, and not, for example, in steps of 3 elements using the groupCells option.

Test case: https://codepen.io/anon/pen/oGLjqy

is there a way to do it in a simple way using your plugin's tools or have I to integrate it with something else?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions