Questions tagged [zepto]

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

From the project-site: http://zeptojs.com/

"Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API. If you use jQuery, you already know how to use Zepto.

While 100% jQuery coverage is not a design goal, the APIs provided match their jQuery counterparts. The ultimate goal is to have a ~5-10k library that downloads and executes fast, with a familiar and versatile API, so you can concentrate on getting stuff done."

Source code: https://github.com/madrobby/zepto

319 questions
6
votes
4 answers

How to use requirejs with zepto

I can't seem to get zepto to work with requirejs. Here are my files main.js require.config({ paths: { zepto: 'libs/zepto/zepto.min', underscore: 'libs/underscore/underscore-min', backbone: 'libs/backbone/backbone-min', cordova:…
Ricky Hartmann
  • 891
  • 1
  • 7
  • 20
6
votes
1 answer

Method to detect page came from back button

I made a method to show a loading indicator at the bottom of the page when a link is clicked. When someone hits the back button, it doesn't refresh the page content of course thus showing the loading area. Is there a way to detect whether the page…
user240993
5
votes
1 answer

detecting iphone/ipad orientation not working

I have this simple script: function orientation() { var orientation = window.orientation; switch(orientation) { case 0: alert('0'); break; case 90: alert('90'); break; case -90: alert('-90'); …
cmplieger
  • 7,155
  • 15
  • 55
  • 83
5
votes
4 answers

What's Zepto.js alternative to jQuery's $(this).parent().parent().find('.active')?

What's Zepto.js alternative to jQuery's $(this).parent().parent().find('.active')?
Ken
  • 149
  • 3
  • 9
5
votes
0 answers

Use slick carousel with zepto

Is there a way for slick carousel to work with zepto.js? I want to use zepto for because this is a mobile app and need a smaller library to load than jquery.
biancamihai
  • 961
  • 6
  • 14
5
votes
1 answer

Error: Zeptojs Animate Is Not A Function

zeptojs document here when I use $().animate function throw error like below: TypeError: $(...).animate is not a function And the version I used is the page provides.
Joyce Lee
  • 309
  • 2
  • 10
5
votes
5 answers

Choosing library for UI widgets for mobile app

I've been developing a mobile app with AngularJS and zeptoJS but the combination of those two is not providing any UI widgets I've seen this topic: Is there a UI library for angularjs for use in a phonegap app? but I'm looking for more answers (…
mmmm
  • 3,768
  • 9
  • 36
  • 63
5
votes
3 answers

Unable to build a custom Zepto package

I've been trying to do a custom build of Zepto (I do have coffee installed globally already), with the following commands: git clone https://github.com/madrobby/zepto.git cd zepto/ npm install MODULES="polyfill zepto event ajax fx touch" ./make…
Johnny
  • 698
  • 8
  • 21
5
votes
2 answers

Can we force ZURB Foundation 4 to use jQuery only, and not Zepto?

I am building a project using jQuery. I put in a manual reference to jQuery in ZURB Foundation 4. I also removed