Zepto.js is a minimalist JavaScript framework for modern web browsers*, with a jQuery-compatible syntax.

The goal: a 5-10k library that handles most basic drudge work with a nice API so you can concentrate on getting stuff done.

Zepto's primary focus is on mobile devices, where small file sizes and tapping into the latest browser features matter most for fast loading and optimal runtime performance.

*Zepto supports Safari, Chrome, Firefox and Opera and any mobile WebKit-based browser, including iOS Mobile Safari, Android browser, HP webOS browser, Blackberry Tablet OS browser and others. Zepto does not support Internet Explorer.

Zepto.js presentation →

Zepto.js is currently in beta, and you can help to make it awesome by contributing code, documentation and demos.

New in v0.8 $.fn.animate(), $.fn.on/off(), better $.fn.data() (add-on), animated $.fn.show/hide() (add-on), CSS transitions in all browsers, Ajax global events, Ajax timeout support, performance boost. See extended changelog

New in v0.7 $.each, $.map, $.slice, .end, .serializeArray(), .serialize(), .triggerHandler(), .wrap, .wrapAll, .unwrap, "longTap" event, .width/height setters, .append (and friends) improvements, .anim() accepts CSS transform properties, `return false` cancels browser event behavior

New in v0.6 .add, .appendTo, .prependTo, .replaceWith, .empty, .submit, text nodes in selectors, function args for .add/.remove/.toggleClass, improvements to events and xhr, cleanups and improved jQuery compatibility.

New in v0.5 .not, .children, .siblings, $.param, better .attr & .html, callback for .anim

New in v0.4 JSONP, better .find, .each, .closest; new .eq, .size, .parent, .parents, .removeAttr, .val (basic), function args to .html, .attr; adjacency methods now take Zepto objects

New in v0.3 bug fix galore, toggleClass, .attr('value'), .last, $ fragments (element creation), .undelegate, .die, proxied event objects.

New in v0.2 Zepto.js is now compatible with backbone.js, event unbind, ajax posts with data.

Follow our progress on Twitter @zeptojs.

Download v0.8

download package

7.4k min+gzip
November 3, 2011

Source & Docs

github

Zepto.js is released under the MIT license.

supported platforms
iOS, Android, webOS
HTML5 Mobile Pro
Download Edition
Learn how to build AWESOME mobile HTML5 apps with Zepto.js creator Thomas Fuchs!
3½ hours of video, hundreds of slides and examples—download now!
JavaScript API