PetroJS Make Your Work Faster
- Load Your CSS & JS asyncronously
- Javascript Animation
- Creating StyleSheet Without Using StyleSheet
- Creating or making array using different position and type
- Different DOM Events
- Manage Scripts and execute callbacks when they perform task
- Httprequest using post, get and perform callbacks
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 });