Closed Farnsi closed 5 months ago
Yes, it would be useful to wait for the end of scrolling when creating an SVG in the case of "smooth" scrolling, but the mentioned animation is also a good example.
I suggest you to use on.beforeStep
for adding delay before the step
on: {
async beforeStep() {
await new Promise(resolve => setTimeout(resolve, 1000))
}
}
I'll add an option to hide the step until on.beforeStep is executed
:tada: This issue has been resolved in version 2.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
on.beforeStep should be executed normally, the step should only be displayed after the delay.
example
On start it shows step 1, click
next
, it hides the current step 1, cause step 2 has a delay. Step 2 on.beforeStep is executed (e.g. do things like open a navigation with animation). After 2000 miliseconds step 2 appears.