paulkmiller / Ash-Mobile-Proto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Card Swiping + Mapbox Demo

In this project, I will look at the compatability of using the Swing.js library in conjunction with Mapbox-Gl-JS

View the Project Live

Environment

ruby 2.3.0
rack 1.5.0
vienna

To-Do's

  • Increase cross-browser support, specifically for animations on Safari
  • Change active listing-icon to #03a9f4 on Swipe / click
  • Fly to Map Marker on Click
  • Build "full-page" view, only available after card has been expanded
  • On clicking a marker, have its corresponding card returned-- See Mapbox-GL-JS Listings Demo for similar behavior
  • Have returned card go to top of deck
  • Keep cards other than top card from expanding on click
  • Keep cards from expanding the viewport once .expanded; overflow:scroll in conjunction with shifting height values is potential solution, but requires fine tooning. See Ln. 107-114 on _cards.scss
  • Write functions to kill all Swing events on .expanded to allow overflow:scroll and the image gallery idea to work
  • Add carousel gallery for each listing assuming listing is .expanded and .full-listing is active
  • Improve animation FPS on mobile will require ancillary research into FPS boosting techniques
  • Write JS for swiping up as "Yes" and swiping down as "No"
  • Add placeholder subnav for display purposes
  • Better design needed for ad placements and general information display
  • Have "It's not a bug, it's a feature!" moment

There are only mobile views. Either shrink your window or turn on the Mobile Emulator in Chrome Dev Tools


Get started

bundle install
bundle exec rackup
sass --watch scss:css
Visit localhost:9292

Resources

Card Related

Potential Alternatives


License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About


Languages

Language:HTML 38.0%Language:CSS 33.9%Language:JavaScript 26.2%Language:Ruby 1.9%