cheatsheets/_js/behaviors/h3-section-list.js

22 lines
365 B
JavaScript

import $ from 'jquery'
import Isotope from 'isotope-layout/dist/isotope.pkgd.js'
/*
* Ensure that main-body is evaluated first
*/
import './main-body'
/*
* Behavior: Isotope
*/
$(function () {
$('[data-js-h3-section-list]').each(function () {
var iso = new Isotope(this, {
itemSelector: '.h3-section',
transitionDuration: 0
})
})
})