Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a light alternative to jQuery Mobile for just page transitions? [closed]

Tags:

javascript

I'm looking for an ULTRA-light framework or snippet which handles -webkit css page transitions in a similar way to JQM or JQTouch. They work fine but I don't want to add almost 200kb of resources just to get some transitions.

I'd like it to feature :

1 Page-to-page switching (divs) within a single HTML-doucment.

2 Do a 'flip' and possibly a 'slide' transition.

Has anyone seen such a thing?

Edit: I'd like to avoid using jQuery all together.

like image 357
jenswirf Avatar asked Feb 06 '12 15:02

jenswirf


2 Answers

Update, found this:

http://www.fasw.ws/faswwp/non-jquery-page-transitions-lightweight/

Looks as if this guy has been able to (almost) extract JQM's transitions to a stand-alone script..

Inspired by this I wrote this script which flips between pages: http://jsfiddle.net/AAfek/47

Use document.querySelector or querySelectorAll instead of using document.all.tags

Works a treat for my purposes..

like image 187
jenswirf Avatar answered Sep 27 '22 17:09

jenswirf


Check out https://github.com/dgileadi/zepto-page-transitions - great, great stuff!

like image 32
Mark Boulder Avatar answered Sep 27 '22 17:09

Mark Boulder