Allow for position: relative; left: ...px
-style transitions
#796
sheldonbaker
started this conversation in
Ideas
Replies: 1 comment
-
Becasue of some reasons, I will never add a such option. One of the biggest reason is performance. Changing If you want to change it, fork the repo and rewirte the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
Move
component currently hard-codes usingtransform: translateX
to position the track element. It would be nice to be able to override that to simply useposition: relative
andleft: ...px
for moving the slides.Using a custom Transition component doesn't fully work, as a couple of other components still make calls to
Move.translate
outside of the Transition component.This would be a useful feature for my use case, which demands that the child elements of some slides occasionally "break out" of their parent slide via
position: fixed
. Unfortunately, atransform: translateX(...)
property on the track element breaks this requirement, as the slide child elements I wish to position relative to the viewport are now instead constrained to the Splide track element.From the W3C spec:
Could a (responsive?) option be added that
Move.translate
would consider before styling the track element?Beta Was this translation helpful? Give feedback.
All reactions