Skip to content

metric152/BigGif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigGif

Opensource version of maxgif.
Also works really well on mobile devices.

Requirements:
PHP 5 or higher
jQuery

The set up for this is pretty simple.

  1. Dump your gifs in the images folder.
  2. Make sure your images folder is set writable (chmod 644 images).
  3. Hit [yourdomain.com]/cache.php to create a output cache of the images on the site. The cache is stored in the images folder. Use this URL to refresh the cache when new images are added.
  4. Include jQuery in your page.
  5. Include the bigGif plugin.
  6. When the page is ready run the plugin.

Options:
The plugin takes a object to configure itself.

  • jsonFile (required): the path to the image cache. The cache is a json document that contains an array of image locations. This property is required.
  • callback: A callBack that runs after the background has been updated.
  • timer: The amount of time in seconds an image will show. Default is 0.

You can look in the index.html file for an example of how to set it up.

NOTES

  • Don't leave spaces in the image names. Browsers don't seem to like that.

About

Opensource version of maxgif

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published