TypeError: $container.isotope is not a function

久未见 提交于 2019-12-07 23:10:20

问题


Probably it could be duplicate question but I have tried every solution I found, I am newbie with imagesLoaded , can anyone please help to get rid out of it?

The scripts I have included is in following order -

<script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-3.3.1.min.js')}}'></script>
<script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-migrate.min330a.js')}}'></script>
<script type='text/javascript' src='{{asset('assets/js/imagesloaded.js')}}'></script>
<script type='text/javascript' src='{{asset('assets/js/imagesloaded.pkgd.js')}}'></script>

And the javascript code I have -

jQuery( function() {
    /* ======= Masonry Grid System ======= */
    var $container = $('.posts-masonry');
    if ($container.length) {
        $container.imagesLoaded(function() {
            $container.isotope({
                layoutMode: 'masonry',
                transitionDuration: '0.3s'
            });
        });
    }
});

Is there any other script I am missing? Please suggest.

来源:https://stackoverflow.com/questions/52292697/typeerror-container-isotope-is-not-a-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!