A Simple Draggable Sortable Tile Grid Javascript Library | tiles.js

Tiles.js is a small and simple JavaScript library that enables users to easily view content in the form of “tiles“, which are customizable rectangular blocks that can hold content of various types, such as images, text, links, etc.

grid drag and drop, drag and drop sortable list, css grid drag and drop, grid layout drag and drop, jquery sortable div drag and drop

How to make use of it:

1. To get started, embrace the JavaScript tiles.js after loading the jQuery library.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="pub/js/tiles.js"></script>

2. Create a container on which you wish to render the tile grid.

<div id="example"></div>

3. Initialize the plugin.

const myExample = new Tiles({
      container: 'example'

4. Add tiles to the grid. All attainable attributes:

  title: 'jquery',
  img_src: '/path/to/image',
  hover_color: '#222',
  clickLink: '#',
  alt_img: '/path/to/another/image',
  click_callback: function(tile){},

5. All optionally available settings to customize the tile grid.

const myExample = new Tiles({

      // required
      container: 'example',

      // width in px
      width: 100,

      // height in px
      height: 100,
      // enable animation on hover
      animate: true,

      // zoom factor
      animate_factor: 1.05,

      // shows color gradient around each tile
      color_cycle: false,

      // enable/disable draggable
      nodrag: false,

      // space between tiles
      tile_gap: 30,

      // number of tiles per row
      num_horizontal: 2,


6. Shuffle the tiles.


7. Sort the tiles.


8. Flip the tiles. Note that the tiles will need to have another picture.


9. Enable/disable the tiles.

// disable

// enable

Draggable Sortable Tile Grid Plugin, tiles.js Github

See Demo And Download

Official Website(hhc97): Click Here

This superior jQuery/javascript plugin is developed by hhc97. For extra advanced usage, please go to the official website.

Related Posts


A Simple Searchable Select Dropdown Plugin | jQuery Select Search

Simple jQuery search on the selection options plugin for your website. Next, there is a checkbox replacement plugin that refines and beautifies the original selection element with…


A Quick jQuery-Based Country Picker With Flags | Country Select JS

Country Select JS is a jQuery plugin to select a country, based on the international phone input plugin. Adds a flag dropdown to any input, which lists…


Simple and Fast Autocomplete and Typeahead Javascript Library | autoComplete.js

autoComplete.js is a simple, pure, and incrementally designed JavaScript library for speed, high versatility, and seamless integration with a wide variety of projects and systems. Features Pure…


Bootstrap Notification Message Alert Plugin with jQuery

BootstrapMsg is a jQuery plugin for displaying messages with Bootstrap alert classes to generate hierarchical in-page navigation for an extended webpage sectioned by heading components. Using Bootstrap…


jQuery Plugin for Transforming HTML Tables Into Charts Using Google Charts

Chartinator is a jQuery plugin for converting HTML tables, Google Sheets and js arrays into charts using Google Charts. Use data from HTML tables Chartinator is designed…


Customizable & Composable Charts for VueJS | vue-wcharts

WCharts is a library that makes it easy to create your own charts using Vuejs. You can easily create reusable chart components. Use a basic layout or…