Skip to content

Prevent stretching the vertical images, but still show them #56

Description

@beshur

Hello.
Here is a question, I passed by when customizing the MovingBoxes.
When it is know what dimensions of images will be used, it is better not to sctretch horizontally the images inside the element container.
CSS: .mb-inside img { width: auto; }

But then they are not seen as next slides.
Is it possible to make the next image stick to left side and the previous one to the right side without additional classes?

Thanks.
That is an extremely great plug-in :)

/* UPDATE /
Possible solution: set reducedSize to 0.3 (for example).
and then add in CSS
.mb-inside { overflow:hidden; }
.mb-inside * {
max-width: none /
was 100% */;
}
This should make vertical-oriented images to be seen when they are not active.

Activity

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

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