question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fading between slides exposes element background

See original GitHub issue

I’m using slick to fade between two very similar product images set on a distinct background. During the transition between the product images one can see the background.

http://jsfiddle.net/rqfdeagj/7/

Steps to reproduce the problem

  1. Set fade: true and cssEase: 'linear'
  2. Apply background to slider or any other parent element

What is the expected behaviour?

I’d expect that the sum of all opacity values during the fade would always amount to 1 (at least when using the ‘linear’ timing function). So a timeline of the fade transition: 0%: Slide A opacity: 1 / Slide B opacity: 0 50%: Slide A opacity: 0.5 / Slide B opacity: 0.5 100%: Slide A opacity: 0 / Slide B opacity: 0

What is observed behaviour?

It seems like at 50% of the fade transition the actual opacity of both slides combined is something like 0.9 which makes the background come through. The Jsfiddle makes this very apparent as the background is red and the slides are light grey. You should see a bright red flash during each transition.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

6reactions
arthurmoellercommented, Jan 26, 2019

I think I found a CSS Fix:

.slick-slide:not(.slick-active) {
    transition-delay: 500ms !important;
}

please mind that the delay has to be the fading duration.

1reaction
vyskoczilovacommented, Jul 25, 2018

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add, change, or remove transitions between slides
Add slide transitions to bring your presentation to life · Select the slide you want to add a transition to. · Select the...
Read more >
Powerpoint - Fading in and out your bulletpoints - YouTube
This short tutorial shows how you make your bulletpoints in powerpoint fade in and out.
Read more >
Simple Background Image Slideshow (No Transition Effect)
To change the background image of an element without transition effects, you can use CSS @keyframes animation, then specify steps() as the ...
Read more >
How to Add a Faded Image as the Background ... - BetterCloud
Transparent or faded images (watermarks) are great to use as slide backgrounds in a PowerPoint presentation. They add visual interest, but ...
Read more >
Slide Transition Animation in PowerPoint - Instructions
To play a sound during the slide transition animation, select a choice from the “Sound” drop-down in the “Timing” button group on the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found