Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop: true and autoSlide correctly display fragment roll-in only the first time. #473

Closed
BillBradwohl opened this issue May 25, 2013 · 4 comments

Comments

@BillBradwohl
Copy link

I'm working on a presentation that will scroll continuously in a kiosk environment.

     <section>
        <h2>What we offer:</h2>
        <p class="fragment roll-in">Porsche</p>
        <p class="fragment roll-in">BMW</p>
        <p class="fragment roll-in">Ferrari</p>
     </section>

Under non loop conditions, and the first time through under loop conditions it plays as expected. All other times through the loop, the roll in is not done as all items are already rolled in and fully visible when the slide loads.

@OSTGerman
Copy link

I have similar task and same problem. Here is my workaround (works well in Firefox full screen mode):

At the very end of presentation create empty slide:

<section id="last">    
</section>

Add "slidechanged" event listener and go to start page at the end:

Reveal.addEventListener( 'slidechanged', function( event ) {       
        if (event.currentSlide.id === 'last'){
            window.location.href = 'index.html';
        }
    } ); 

Hope this helps.

@BillBradwohl
Copy link
Author

Thank you for this work around. I was going to investigate this possibility and now you have saved me some time and probably aggravation.

The problem still needs to be addressed in the framework itself, as looping shouldn't change the appearance of what is displayed.

@hakimel
Copy link
Owner

hakimel commented Jul 14, 2013

Thanks for the report, this has been fixed in the dev branch.

@hakimel hakimel closed this as completed Jul 14, 2013
enovajuan pushed a commit to enovajuan/reveal.js that referenced this issue Dec 2, 2014
@MohammedAmine
Copy link

Thanks, worked !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants