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

How to open fancybox modal pop up? #180

Open
raysefo opened this issue May 30, 2016 · 3 comments
Open

How to open fancybox modal pop up? #180

raysefo opened this issue May 30, 2016 · 3 comments

Comments

@raysefo
Copy link

raysefo commented May 30, 2016

Hello guys,

I would like to open fancybox modal when users clicks an anchor tag inside of this div. (Cycling occurs when users click the div.)
HTML:

<div id="right4" class="pics">
    <img class="img-center" src="images/smart-agriculture1.png" width="168" height="168" alt="Akıllı Tarım"/>
    <ul class="solutions-ul">
        <li lang="tr">
            <i class="fa fa-caret-right"></i> Gübreleme
        </li>
        <li lang="tr">
            <i class="fa fa-caret-right"></i> Şarap Kalite Artırılması
        </li>
        <li lang="tr">

            <i class="fa fa-caret-right"></i> <a class="fancybox" rel="gallery4" href="/images/flyers/smart_agriculture.jpg">Akıllı Tarım</a>
        </li>
    </ul>
</div>

Here is the JQuery:

$("#right4").cycle({
    fx: 'curtainX',
    next: '#right',
    timeout: 0,
    easing: 'easeInOutBack'
});

Here is fancybox jquery:

$(document).ready(function () {
    $(".fancybox").fancybox({
        autoSize: true,
        fitToView: true,


    });

});

Jquery cycle:

$("right4").cycle({
                fx: 'scrollRight',
                next: '#right4',
                timeout: 0,
                easing: 'easeInOutBack'
            });
@raysefo
Copy link
Author

raysefo commented May 30, 2016

any idea how to manage?

@raysefo
Copy link
Author

raysefo commented Jun 17, 2016

here is codepen:
http://codepen.io/cenkkizildag/pen/rLezog

@raysefo
Copy link
Author

raysefo commented Jul 21, 2016

why I can NOT click anchor tag and popup fancybox inside of cycle?

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

1 participant