How do you create boxes like github's explore section?


Tags: javascript,jquery,css3,github,background

Problem :

Im looking for Java Script or Css to create random background but I don't know how!

Explore page link



Solution :

Take a look on this library: https://github.com/btmills/geopattern

This is a JavaScript port of jasonlong/geo_pattern with a live preview page and is derived from the background generator originally used for GitHub Guides.

Usage

Include the minified script. jQuery is optional.

<script src="js/jquery.min.js"></script> <!-- optional -->
<script src="js/geopattern.min.js"></script>

Use either the GeoPattern browser global or the jQuery plugin:

// Use the global...
var pattern = GeoPattern.generate('GitHub');
$('#geopattern').css('background-image', pattern.toDataUrl());

// ...or the plugin
$('#geopattern').geopattern('GitHub');

    CSS Howto..

    How to make a CSS Menu “Selected” with Hover Image Gallery Effect?

    How do i make the evenly spread elements in my nav bar not touch the edges of the page?

    How do I apply a style to all children of an elements

    How to get uncompressed css output while using LESS(less-watch-compiler.js)?

    how to use both fixed and relative position property in same page using css?

    How to use CSS float without hiding parts of a DIV

    How to horizontally align a list of contacts?

    How to add multiple button in 1 line (css)? [duplicate]

    How to position a background image in reveal.js?

    How can I create an inline grouped listview in windows 8

    How to make a navbar appear in certain section of the page? (bootstrap too)

    how to increase/decrease font-size from external css [closed]

    How to upload image to an existing image src in angularjs, css

    How to make the CSS width property go from bottom to top

    Using only CSS, show div on hover over

    How to get same height to two sibling buttons

    How to add all li of existing ul to the bottom of another ul base on their css classes

    how to set base_url() inside css file using codeigniter, to access background_image_url inside css file?

    How can I code CSS to make Table like?

    how to put image on button? (css)

    How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

    selenium - how to click on a link based on its text using css instead of xpath and without using the contains operator?

    How to make the element located in the center of a div?

    How to override custom placeholder css

    How to add css into .scss file or theme

    How does the resizing api on the App Engine Imagine API work?

    How can I get Sitecore Field Renderer to use a css class for an image

    How do I override Bootstrap's
    border-left with a FontAwesome icon in CSS?

    How to create a Dribbble-esque image hover effect?

    I applied CSS auto-resizing to image, now how do I push it to the background?