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

animation on open modal problem (moves top and hides itself) #51

Open
gerpaick opened this issue Jun 14, 2012 · 1 comment
Open

animation on open modal problem (moves top and hides itself) #51

gerpaick opened this issue Jun 14, 2012 · 1 comment

Comments

@gerpaick
Copy link

Hi,
I have this situation:
on first modal i put some info and option to choose. then when i choose some option (using button click) first modal should close, and second shoud open to get more info.
but second modal opens correctly on center of the page, but after a very short moment it moves up and up, and i see only a small part of this modal.

i tried to do this in 2 ways:

$('#btnSystem1200cWybierz').click(function() {
    $('#krok2').reveal({
        onOpening: function(){
            $('#krok1').trigger('reveal:close');
        }
    });
});

and 2)

$('#btnSystem1200cWybierz').click(function() {
    $('#krok1').trigger('reveal:close');
    $('#krok2').reveal();
});

in both cases i have the same problem.
any idea what i am doing wrong?

to see this in action go to: http://alfen.linuxpl.info/test/ and click 'wybierz' button on 'System 1200 Classic' or 'System 1200 Classic Podmurówka' panel.

thanks in advance!

gerard

@altunyurt
Copy link

You might have had multiple instances of

<script src="...reveal.js"></script>

in your page. Similar problem, where "the modal appears in the middle, than runs away"
occured to me. Checking the page i've seen reveal.js being included multiple times. Leaving
only one solved it for me.

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

No branches or pull requests

2 participants