PXL.EZ.JS. BETA
// SETUP
// Add pxl.js to the <head> </head> of your html.
<script src="pxl.ez.js"></script>
// Add the pxl javascript function above your </body> tag.
<script>pxl();</script>
// GLOSSARY
'yourElement' // A css id , class , or html tag name . For example '#myElement' , '.myElement' , 'myElement'
'style' // The css style to be effected
'unit' // Any css unit of measurement like 'px' or '%'
FEATURES
// TOUCHPAD (Tap & Swipe)
// Give the div you want to make a touchpad the id 'touchpad'
<div id='touchpad'></div>
// FADE
IN
OUT
// FADE IN
fade.i('yourElement');
// FADE OUT
fade.o('yourElement');
// MOVE
LEFT
RIGHT
UP
DOWN
// MOVE
move('element','style','unit',from,to,time);
// EXAMPLES
move('#yourElement','l','px',500,0,200); // Move left
move('#yourElement','r','px',500,0,200); // Move right
move('#yourElement','u','px',500,0,200); // Move up
move('#yourElement','d','px',500,0,200); // Move down
// COLOR
// COLOR
color('element',[start rgb],[end rgb]);
// EXAMPLE
color('#yourElement',[216,185,102],[102,21,0]);
// INTRO ANIMATION
// INTRO
// Fades in the opacity of a sequence of elements.
intro(['Array'],Speed);
// EXAMPLE
intro(['#yourElement1','.yourElement2','yourElement3'],300);
// SCROLLER
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
<div class="scroller" id="scroller" style="width:320px; height:240px; text-align: left; line-height:140%;"></div>
// VIDEO
<div class="video_player" id="http://pixelhustler.com/projects/mobilejs/VideoFileNameWithoutExtension"></div>
// AUDIO
<div class="track" id="sober"></div>
<div class="track" id="bottom"></div>
<div class="track" id="crawlaway"></div>
// BUTTONS
BUTTON
BUTTON
BUTTON
<a href="#" class="btn_small">BUTTON</a>
<a href="#" class="btn">BUTTON</a>
<a href="#" class="btn_big">BUTTON</a>
<a href="#" class="btn_thumb"></a>
<a href="#" class="btn_icon"></a>
// NODE
// GET DIV BY CLASS NAME
n('.some_div');
// GET DIV BY ID NAME
n('#some_div');
// GET DIV BY TAG NAME
n('some_div');
// CUSTOM
// GET FILE PATH
_file('yourFilename');
// TRACK CLICK AND OPEN LINK
_link('yourCustomTrackingLabel','yourLink');
// TRACK A CLICK
_click('yourCustomTrackingLabel');
// TRACK AN EVENT
_event('yourCustomTrackingLabel');