Giter Club home page Giter Club logo

Comments (13)

JohnONolan avatar JohnONolan commented on May 3, 2024

Punted to 0.3

/cc @ricardobeat - this is the exploratory issue I referenced in #142

from ghost.

ricardobeat avatar ricardobeat commented on May 3, 2024

It's reasonably easy to add page transitions to the backbone routes after we have the admin working as a single-page app.

We could use zepto on mobile - and desktop !IE? - to handle touch events. iCheck is the only dependent on jQuery and it's compatible with Zepto too, so it shouldn't be a problem. Hammer or QuoJS have extra gestures, but I don't think we'll be using anything beyond swipes?

For slide-out panels this looks good: http://cloudfour.github.io/offCanvasMenu/

from ghost.

JohnONolan avatar JohnONolan commented on May 3, 2024

I think Zepto is lovely - my only issue with it is 3rd party developers, who will inevitably want jQuery for their themes and plugins. jQuery is also an extremely stable library that I feel "safe" relying on. Zepto is still pretty young. We're already using a lot of bleeding-edge technologies. Have to be careful not to go OTT.

Slide-out panels - they all seem to be roughly the same tbh - and the custom bit of code we have for the existing slide out menu does work. What I'm looking for is something more comprehensive (like Ratchet) that we can use as a base for our own code.

from ghost.

tgriesser avatar tgriesser commented on May 3, 2024

FWIW backbone also no longer officially supports zepto with test suites and such.

from ghost.

ErisDS avatar ErisDS commented on May 3, 2024

Do we wanna have a go with Rachet and see how things work out?

from ghost.

JohnONolan avatar JohnONolan commented on May 3, 2024

👍

from ghost.

matthojo avatar matthojo commented on May 3, 2024

I've had a good look at Ratchet and it looks nice but might be overkill and contain a lot of unnecessary resources.
As most of our content is already rendered and states saved using backbone and we have no need to 'pull in' pages, im thinking that maybe building our own interactions maybe easier (see dashboard sidebar). Creating a small library that handles slideIn and slideOuts, with touch events shouldn't be too difficult.
However if I'm missing the ship here (quite possibly), I'm happy to use Ratchet, looks really nice.

from ghost.

JohnONolan avatar JohnONolan commented on May 3, 2024

Stylistically Ratchet has a lot of stuff we probably don't need - from an interactions PoV however, it has a lot of stuff that seems like it would be timeconsuming to write from scratch. @ErisDS ?

from ghost.

ErisDS avatar ErisDS commented on May 3, 2024

I don't have any knowledge about what sorts of interactions we are going to need - I think my approach would be to use Ratchet to deliver the mobile stuff for now and then if it turns out we are only using one or two features we can thing about implementing our own.

from ghost.

JohnONolan avatar JohnONolan commented on May 3, 2024

+1 lets get it started

from ghost.

matthojo avatar matthojo commented on May 3, 2024

I'm on it.

from ghost.

matthojo avatar matthojo commented on May 3, 2024

Looks like Ratchet is a no go. It appears they remove all click events, so it only works with 'taps'. See: twbs/ratchet#104

You can get around this by using a library called fingerblast.js, this simulates touch events on clicks. This however makes me feel slightly queezy :P

from ghost.

ErisDS avatar ErisDS commented on May 3, 2024

This should probably also link to #404 and mention that we've added hammer.js

from ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.