Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

vlthemes/Ranfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Ranfolio

Ranfolio is a simple jQuery plugin which allowed to make creative portfolio. Good luck!

HTML Markup

For using Ranfolio you need to add basic HTML Markup. You just need to create div which contain a elements with data-image attribute.

<div class="vl-example-ranfolio">
	<a href="#" data-color="" data-image="dist/image/1.jpg">Iarerom</a>
	<a href="#" data-color="" data-image="dist/image/2.jpg">Gan</a>
	<a href="#" data-color="" data-image="dist/image/3.jpg">Dvethane</a>
	<a href="#" data-color="" data-image="dist/image/4.jpg">Masom</a>
	<a href="#" data-color="" data-image="dist/image/5.jpg">Pokite</a>
	<a href="#" data-color="" data-image="dist/image/6.jpg">Nelofa</a>
	<a href="#" data-color="" data-image="dist/image/7.jpg">Rdeyoma</a>
	<a href="#" data-color="" data-image="dist/image/8.jpg">Qushan</a>
</div>

Call Ranfolio Plugin

To call Ranfolio plugin you need to call ranfolio() method in .js file, to your element with menu HTML Markup. Like this:

$(document).ready(function(){
    $(".vl-example-ranfolio").ranfolio();
});

Methods

You can use Ranfolio with methods. If you just call ranfolio() it initiate portfolio on your HTML Markup. You can call ranfolio("destroy") to clear your html from Ranfolio classes and delete functionality.

Options

To customise your Ranfolio you can call it with options:

$(".vl-example-ranfolio").ranfolio({
  randomWidth: true, //Random image width
  randomInterval: [16, 33], //Maximum width of the image when hovering in percent (min, max)
  randomPosition: false, //Random position on screen
  showCounter: true, //Show counters before link element
  delimiter: "", //Delimiter between links,
  duration: 400 //Duration of appearing of the picture
});

Releases

No releases published

Packages

No packages published