Skip to content

tehsmeely/JWallop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

A layer ontop of wallop which enables you to use multiple independent wallops in a page, without worrying about renaming the special classes

dependent on wallop JS and wallop CSS files as per normal wallop

###Class

JWallop (wallopID, [wallopOptions, usePaginationDots, dotCurrentClass, onChangefunction]

#Usage

read and understand the basics of wallop: the html needs to be set up the same, but give the outer "Wallop" an id.

Html:

<div class="Wallop" id="wallop1">
  ...all the wallops stuff here...
</div>

Basic:

wallopID = "wallop1";

wallop1 = new JWallop(wallopID);

Advanced:

var h2OnChange = function(event){
    var selector = "#" + event.detail.wallopEl.getAttribute("id") + " h2";
    TweenMax.fromTo(selector, 2,{color: "#fff"}, {color: "#00f"});
    console.log(selector);
}

wallop1 = new JWallop("wallop1", {}, true, '', h2OnChange);

About

Independent Wallop classes for multiple on one page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published