PetroJS Make Your Work Faster

What is PetroJS?

Petrojs JS is a small, fast and simple JavaScript Library. It makes HTML DOM manipulation, event handling, animation, Ajax and loading external script simple and easier petrojs is a cross browser javascript framework.

Other Projects Under Development of

DOM Traversal and Manipulation

$petrojs('elem').html('html')

Event Handling

$petrojs('#my-button button').onpet('click', function() { 

    $petrojs('elem').fadeIn(1000)

})

CSS Classes

$petrojs('elem').addClass('classname', function(){

	//callback

});



$petrojs('elem').removeClass('classname', function(){

	//callback

});



$petrojs('elem').toggleClass('classname', function(){

	//callback

});



$petrojs("elem").hasClass("classname",function(){

	//callback for has class

},function(){

	//callback for no class

});