Git Product home page Git Product logo

Comments (4)

fancyapps avatar fancyapps commented on July 17, 2024

Hi,

Please, provide additional info, a live demo would help to give a proper answer. You can easily create a demo here - https://fancyapps.com/playground/ - buy you can use any other similar service (Codepen/Codesandbox/etc).

Basically, you control the width of the slide using CSS. For example, in this demo - https://fancyapps.com/playground/g9 - each slide has a width of 30%. Images are large enough to fill the slide and they have a maximum width of 100%, so that they are responsive.

from ui.

AlexJMcloud avatar AlexJMcloud commented on July 17, 2024

Hi,

Please, provide additional info, a live demo would help to give a proper answer. You can easily create a demo here - https://fancyapps.com/playground/ - buy you can use any other similar service (Codepen/Codesandbox/etc).

Basically, you control the width of the slide using CSS. For example, in this demo - https://fancyapps.com/playground/g9 - each slide has a width of 30%. Images are large enough to fill the slide and they have a maximum width of 100%, so that they are responsive.

Thanks for the example. I have corrected my code and there are no such failures. I think this example should be placed in the documentation. It will be useful to many.

from ui.

AlexJMcloud avatar AlexJMcloud commented on July 17, 2024

It only remains to understand how to align the photo horizontally. They are different in height.

from ui.

fancyapps avatar fancyapps commented on July 17, 2024

Since slides are flex items, you can easily align content as you need. Also, all slides will be the same height, except for virtual slides.

btw, if you wonder how to combine everything, here is a quick demo - https://fancyapps.com/playground/pL

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.