Skip to content

Account for Lorenza offset#2

Closed
KelseyCooper wants to merge 2 commits intois-visiblefrom
lorenza-offset
Closed

Account for Lorenza offset#2
KelseyCooper wants to merge 2 commits intois-visiblefrom
lorenza-offset

Conversation

@KelseyCooper
Copy link
Copy Markdown

@KelseyCooper KelseyCooper commented Feb 18, 2021

Overview

Lorenza uses an offset on each slide that is within a wrapAround slider. This offset tricks Flickity into keeping slides overhanging the righthand side of the slider. This allows us to keep these slides from shifting to the start of the queue and moving to the left right after they have left the viewport.

The offset is by 1px for each slide, with a maximum of 4 slides.

This change allows us to offset the viewport width calculated within #1. We're offsetting by the maximum 4 pixels.

Edit

A problem with inline carousels has been found. Solution has been added and a note has been made on the original Flickity PR

Usage

"flickity": "https://github.com/fluorescent/flickity#e627ff7",

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