In the example application, I am utilizing the following plugin:
I am perplexed by this line of code:
style="width: 538px; transition: opacity 10000ms cubic-bezier(0.42, 0.65, 0.27, 0.99) 0s;
. Can someone explain how the transition works?
From what I understand: when an element changes its opacity, it should take 10 seconds. However, in my application, it only takes 5 seconds.
To test this, I used a stopwatch on my demo application. When I clicked the next
button, it took 5 seconds
to reveal the new element.
Here is the code for my demo application:
https://codesandbox.io/s/compassionate-drake-y4em6?file=/src/index.js:105-110
new Splide("#splide", {
type: "fade",
speed: 10000
}).mount();
I have specified a speed of 10 seconds. According to the documentation, this should mean it takes 10 seconds to display the new element. Why is it taking only 5 seconds?
Documentation Link:
Any suggestions on why this discrepancy may be occurring?