All Projects → SkaterDad → cycle-snabbdom-examples

SkaterDad / cycle-snabbdom-examples

Licence: MIT license
Cycle.js Component Examples with Routing & Transitions!

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to cycle-snabbdom-examples

cycle-gun
A cycle.js driver wrapping gun.js storage
Stars: ✭ 26 (+100%)
Mutual labels:  xstream, cyclejs
Examples
An complete examples and related support for various popular projects, and more.
Stars: ✭ 22 (+69.23%)
Mutual labels:  examples
assembly-examples
assembly-examples
Stars: ✭ 23 (+76.92%)
Mutual labels:  examples
standalone-configuration-management
Basic examples of how to use each of chef, puppet, salt and ansible as standalone configuration management systems.
Stars: ✭ 14 (+7.69%)
Mutual labels:  examples
k6-example-data-generation
Example repository showing how to utilise k6 and faker to load test using generated data
Stars: ✭ 32 (+146.15%)
Mutual labels:  examples
hebi-matlab-examples
Examples for the HEBI Robotics API for MATLAB
Stars: ✭ 20 (+53.85%)
Mutual labels:  examples
poc-github-actions
Various proofs of concept examples using Github Actions 🤖
Stars: ✭ 103 (+692.31%)
Mutual labels:  examples
ktor-API-examples
Examples with ktor to create an API REST
Stars: ✭ 23 (+76.92%)
Mutual labels:  examples
raspimouse ros examples
ROS examples for Raspberry Pi Mouse
Stars: ✭ 17 (+30.77%)
Mutual labels:  examples
community datasets
Example datasets and dashboards known to work well in OmniSci
Stars: ✭ 14 (+7.69%)
Mutual labels:  examples
terraform-otc
Terraform integration modules for Open Telekom Cloud
Stars: ✭ 20 (+53.85%)
Mutual labels:  examples
elm-ui-examples
Examples applications for Elm-UI
Stars: ✭ 33 (+153.85%)
Mutual labels:  examples
tensorflow-example
Tensorflow-example:使用MNIST训练模型,并识别手写数字图片
Stars: ✭ 26 (+100%)
Mutual labels:  examples
react-samples
Multi-project repository containing examples to explain react concepts.
Stars: ✭ 25 (+92.31%)
Mutual labels:  examples
cycle-hn
Hackernews Clone Using CycleJS
Stars: ✭ 42 (+223.08%)
Mutual labels:  cyclejs
go-interfaces
This repos has lots of Go interface usage and best practice examples
Stars: ✭ 112 (+761.54%)
Mutual labels:  examples
vercel-examples
📦 Example projects using Vercel platform. Using Node.js, PHP and others.
Stars: ✭ 205 (+1476.92%)
Mutual labels:  examples
Game-Examples
Godot game examples for gotm.io - the Godot Platform!
Stars: ✭ 27 (+107.69%)
Mutual labels:  examples
github-action-gitflow-release-workflow
Example workflows for automated releases in a GitFlow-style project using GitHub actions.
Stars: ✭ 91 (+600%)
Mutual labels:  examples
DotNetWithCMake
Your swiss army knife for creating .NET assemblies with CMake and integrating unmanaged code.
Stars: ✭ 50 (+284.62%)
Mutual labels:  examples

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

  • Route/Page transitions - currently just opacity fade, but you can easily extend to add transforms. The important part is that your page wrappers are position: absolute so they can overlap while transitioning.
  • Search result items animate when added & removed.
  • Hero transitions (aka. shared element transitions). An item which is common to two pages will smoothly animate to the new position. This relies on the snabbdom hero module, so you'll need to pass a list of modules to the Cycle DOM driver.

Future plans

  • Document how some of these examples work in more detail. There is a careful balance of position: relative and position: absolute on certain elements and containers.

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/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].