Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Using carousel feature as a cover (or full row bg image)

Using carousel feature as a cover (or full row bg image)

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 635 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • daniD Offline
    daniD Offline
    dani
    wrote on last edited by dani
    #1

    Hi Armin,

    I'm wondering if there is a easy way to combine the code for a carousel and cover feature.
    ie. I want to have a fading slideshow that functions just a cover (fills the browser width and height).
    Or if there is a way to adjust the carousel with css so it adjusts to 100vh/100vw, that could work too.
    (something like an option on the carousel instance 'use as full row bg image).

    Here is the carousel without left/right margins, but there is still a bottom margin but the browser edge is as an absolute boundary, unlike a cover or full row bg image.

    http://visuel.org/sg

    Thank you!
    Dani

    https://danielcampbell.ca

    1 Reply Last reply
    1
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Hi Dani,

      until now there is not an official feature for that option.

      But what you can do is the following:

      Add a custom class to your carousel. You can do this by right clicking on the carousel image 0_1489765767203_Bildschirmfoto 2017-03-17 um 16.48.59.png
      Then give the carousel a custom class like carousel-full.

      Then you can add a custom CSS code to your theme:

      .carousel-full {
          height: 100vh;
      }
      
      .lay-carousel.sliding {
          height: 100vh;
      }
      
      .col .lay-carousel img.h100 {
          object-fit: cover;
          height: 100vh;
          width: 100vw;
      }
      
      

      The code above is maybe not compatible with all Browsers. For example Internet Explorer has trouble using those CSS styles.

      Then the carousel has the window height and width.
      Try to keep all the images with the same aspect ratio. Which means they should all have the same height and width.

      I hope I was able to help. If you have further questions – please let us know.

      Enjoy your weekend!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • daniD Offline
        daniD Offline
        dani
        wrote on last edited by
        #3

        Thank you Marius,

        as it's not working with the proportions (like a cover) I'll use another solution and maybe you can include this feature in future updates.

        Best,
        Daniel

        https://danielcampbell.ca

        1 Reply Last reply
        0
        • mariusjopenM Offline
          mariusjopenM Offline
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Hi Daniel,

          all right!
          If you have questions – you can always let us know.

          Have a good week!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          šŸ’æ Email me here: šŸ’æ
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          A
          alasdair17
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search