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. White flash in carousel fade transition

White flash in carousel fade transition

Scheduled Pinned Locked Moved Addons
10 Posts 2 Posters 703 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.
  • StarcS Offline
    StarcS Offline
    Starc
    wrote on last edited by
    #1

    Hi Armin,

    I'm using the carousel to animate the color of words inside a text block (text slides only).
    However, I’ve noticed that the fade animation always shows a brief white flash between slides, as if it's not doing a proper crossfade. It seems like the previous slide disappears before the next one has fully faded in.

    Is there a way to achieve a true crossfade, where the previous slide stays visible while the new one fades in over it?

    I’ve already tried tweaking the CSS, but without success.

    https://staging.gkdesign.it/carousel-test-armin/
    In this example there is no custom css/js. Just the carousel with loop, autoplay and fade. Multiple text slides.

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2
      .lay-carousel.transition-fading .lay-carousel-slide.transition{
      transition: opacity 300ms linear!important; 
      }
      .lay-carousel.transition-fading .lay-carousel-slide{
      transition: opacity 300ms linear!important; 
      }
      

      Enter this css in "lay options" -> "custom css & html" -> "custom css"

      Maybe only this is enough:

      .lay-carousel.transition-fading .lay-carousel-slide.transition{
      transition: opacity 300ms linear!important; 
      }
      
      1 Reply Last reply
      0
      • StarcS Offline
        StarcS Offline
        Starc
        wrote on last edited by
        #3

        Thank you @arminunruh

        I tried your solutio but does not work, i m'still getting the white flash between transitions and also the opacity speed (300ms) is not applied.
        I also tried after deleting all custom code and putting just yours but none

        It would be really cool for me to make the carousel work well for this purpose.

        1 Reply Last reply
        0
        • StarcS Offline
          StarcS Offline
          Starc
          wrote on last edited by
          #4

          The black parts of the text are flashing, even though they shouldn't change in a crossfade since they're the same between the first and second slide.

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5

            Hey, so. I think the one issue is on the transition easing function has to be linear, and before it was probably a different one.

            You were talking about the 300ms not being applied, but looking at the code of the website, it does get applied. Maybe you were mixing it up with the speed of the autoplay, which you have to set in the carousel edit screen:

            Screenshot 2025-05-12 at 11.23.50.png

            The autoplay has to be a bigger value than the 300ms we set for the opacity transition duration.

            You could even try to set the transition duration much smaller, like this:

            
            .lay-carousel.transition-fading .lay-carousel-slide.transition{
            transition: opacity 100ms linear!important; 
            }
            .lay-carousel.transition-fading .lay-carousel-slide{
            transition: opacity 100ms linear!important; 
            }
            

            This is basically just the same CSS I gave you in my last answer, but with a lower transition duration. So you could just replace the CSS you have now with this one.

            1 Reply Last reply
            0
            • StarcS Offline
              StarcS Offline
              Starc
              wrote on last edited by
              #6

              I tried but it does not work, but I already knew that before trying.

              It’s true that I could set a 1ms animation and wouldn’t see the flash, but that’s just because the animation would be imperceptible. Might as well set animation: none.
              Maybe it’s not possible, or maybe I just haven’t managed to explain the problem clearly. I don’t know.

              I’d really love to see the carousel slides animating by crossing into each other, without starting from a white background. 300-600ms animation, cross fade style between slides...

              Do I really have to give up? It ""seems easy"" to me, but maybe it’s complicated and I just don’t understand.

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                yea i will need to take another in depth look here

                1 Reply Last reply
                1
                • StarcS Offline
                  StarcS Offline
                  Starc
                  wrote on last edited by
                  #8

                  Hi Armin, can u take it a look?

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    yea so i couldnt really figure out why this happens, makes no sense :/
                    im at a loss here

                    1 Reply Last reply
                    0
                    • StarcS Offline
                      StarcS Offline
                      Starc
                      wrote on last edited by
                      #10

                      oh no! thank you, hope for future updates :)

                      1 Reply Last reply
                      1
                      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
                      M
                      michael_vvc
                      R
                      robsdonatini
                      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