hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.81k stars 16.64k forks source link

Documentation issue: definition of "fade-in-then-out" and "current-visible" #3572

Open keul opened 8 months ago

keul commented 8 months ago

On https://revealjs.com/fragments/ both fade-in-then-out and current-visible are defined as "Fades in, then out on the next step"

NicolasCwy commented 8 months ago

I used them both and it seems to reflect the behaviour of the effects, although I'm unsure why they are duplicated.

ssokolow commented 4 months ago

I can confirm that. There's a single definition of each in the SCSS source, and it looks like this:

.reveal .fragment.fade-in-then-out,
.reveal .fragment.current-visible {
    opacity: 0;
    visibility: hidden;

    &.current-fragment {
        opacity: 1;
        visibility: inherit;
    }
}

The only other mention of them in un-compiled/un-minified files is this line from js/utils/constants.js:

export const FRAGMENT_STYLE_REGEX = /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;