@624144061/masonryjs

1.3.915 • Public • Published

使指定容器变为可流式布局

特性

  • 可拖拽
  • 放缩
  • 自动排版
  • 子元素宽度自适应

example

Masonry.create(docoment.getElementById('body'),//容器
        {
         columnGap:10,
         rowGap:10,
         draggable:true,//拖拽
         scaleable:true,//放缩
         ondragend:()=>{
            //拖拽结束后的回调
         }
        })
        })

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @624144061/masonryjs

      Weekly Downloads

      9

      Version

      1.3.915

      License

      MIT

      Unpacked Size

      21.1 kB

      Total Files

      6

      Last publish

      Collaborators

      • 624144061