Home

Awesome

Cycle version & Stream Library

This branch uses Cycle Diversity w/ xstream.

cycle-snabbdom-examples

Examples using Cycle.js with Snabbdom as the v-dom library (this is now default).

Examples

  1. Color Changer - Basically just a counter app, but background color changes by looping through an array.
  2. Redirect After Form Post - Shows one way of handling URL redirects after <form> posts.
  3. Github Search - Clone of official Cycle example, with snabbdom-specific animations as search results are added/removed.
  4. Hero Transition (Simple) - Checkbox toggles between pages. Each page is a box with some text. The text does a hero transition.
  5. Hero Transition (Complex) - 1st page pulls repo list from github. 2nd page is detail for a specific repo. The owner avatar does a hero transition.
  6. Hero Transition (Tests) - Hero transitions on multiple types of DOM elements, including text which changes orientation and size. Best viewed in Chrome. Other browsers have problems with one of the text transitions.

snabbdom-specific animations

Future plans

How to use

For client-side hot reloading:

  1. Clone the repo
  2. Choose a branch
  3. npm install
  4. npm start
  5. Open your browser to http://localhost:3000/