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. Addons
  3. Individual Carousel speeds and transitions

Individual Carousel speeds and transitions

Scheduled Pinned Locked Moved Addons
3 Posts 2 Posters 83 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.
  • Q Offline
    Q Offline
    quirin
    wrote on Aug 20, 2022, 11:36 AM last edited by
    #1

    Re: Carousel autoplay speed

    While this works perfectly for me to address different fading durations with assigned classes for my carousel elements:

    .slowcarousel .lay-carousel.transition-fading .lay-carousel-slide.transition {
        -webkit-transition: opacity 3500ms ease-out !important;
        -o-transition: opacity 3500ms ease-out !important;
        transition: opacity 3500ms ease-out !important;
    }
    
    .fastcarousel .lay-carousel.transition-fading .lay-carousel-slide.transition {
        -webkit-transition: opacity 1500ms ease-out !important;
        -o-transition: opacity 1500ms ease-out !important;
        transition: opacity 1500ms ease-out !important;
    }
    

    ...i cannot assign individual speeds for when the slide transitions actually start. Meaning that all carousel transitions always start at the same time from the predefined
    2022-08-20 13_34_32-Carousel Addon.png

    and only the duration of the fading is different.

    Now i also tried what you already proposed to also vary the transition start by:

    
    .slowcarousel .swiper-wrapper {
        transition-duration: 5000ms !important;
    }
    
    .fastcarousel .swiper-wrapper {
        transition-duration: 3000ms !important;
    }
    

    ...without any success.
    Am I somehow missing a value for the overall transition here?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      quirin
      wrote on Aug 20, 2022, 1:27 PM last edited by
      #2

      @quirin said in Individual Carousel speeds and transitions:

      -webkit-transition: opacity 1500ms ease-out !important;
      -o-transition: opacity 1500ms ease-out !important;
      transition: opacity 1500ms ease-out !important;

      i actually managed to get the effect i wanted by using a transition-delay. So if you only want variable fading speeds with shifted transitions that is all the custom code you need:

      
      .fastcarousel .lay-carousel-slide.transition{
          transition-duration: 1000ms !important;
      }
      
      
      .slowcarousel .lay-carousel-slide.transition{
          transition-duration: 2000ms !important;
      		transition-delay: 1000ms !important;
      }
      

      But i still didn't figure out how to assign the Autoplay Speed individually, which is still inherited from Lay Options for all carousels on my page. Would be interesting to know if there is a possibility!

      Best,
      Q

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arminunruh
        Global Moderator
        wrote on Aug 21, 2022, 11:06 AM last edited by
        #3

        hey not sure if this can be done from your side.
        because i think i need to change the javascript to do this properly.

        i'm adding this as a feature for the next update.

        if you'd code something by yourself i think you'd need
        https://developer.mozilla.org/en-US/docs/Web/CSS/transition-delay

        but i think that would delay every change of the slide :D

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

        1/3

        Aug 20, 2022, 11:36 AM


        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
        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.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search