Skip to content
/ scene Public

A tiny front-end framework designed with ❤️

License

Notifications You must be signed in to change notification settings

luin/scene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scene

A tiny front-end framework designed with ❤️

Install

Simply include the scene.js in your page or require it as a typical npm module.

npm install scene-framework

Usage

const Scene = require('scene-framework');

Scene.define('splash', function () {
  this.find('button').click(function () {
    Scene.go('game');
  });
}, function () {
  // Invoked when leaving the "splash" scene.
  // Note that you don't need to cleanup the
  // listeners of the button element since
  // Scene will do that for you.
});

Scene.define('game', function () {
  alert('Welcome to the game!');
  Scene.go('splash');
});

About

A tiny front-end framework designed with ❤️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages