Giter Club home page Giter Club logo

slides's Introduction

HTML5 Slides framework

Just a simple slides framework built on HTML5 technologies

How to apply this framework

  • Write your slides document

    • using HTML5 structure as usual
    • But remember each section/header/footer element will be treat as one slide
    • Currently nest sections are not support well, improvement in plan
  • Add these codes to your head of document:

      // change /Slides to your path
      // or http://raw.github.com/hax/Slides/master/src/ if you just want to use the latest version
      <link rel="stylesheet" href="/Slides/src/common.css">
      <link rel="stylesheet" media="projection, screen and (min-width: 780px)" href="/Slides/src/projection.css">
      <link rel="alternate stylesheet" title="slides" href="/Slides/src/play.css">
      <script src="/Slides/src/app.js"></script>
    
  • Play slides

    • Press F11 (or any key which switch to fullscreen mode in your browser) to start/stop playing slides
    • In playing mode, press right arrow / pagedown to next slide and left arrow /pageup to previous slide
    • Browser back/forward button also works

Browser Compatibility

This is a very new framework which only be tested under recent Chrome/Firefox, but it should work on any HTML5 browser.

HTML5 API this framework used:

  • document.querySelectorAll

  • Element.classList (compatibility patch in plan)

  • popstate event (I plan to add compatibility patch for old browsers which not support popstate event in near future)

  • window.fullScreen / fullscreenchange event (Mozilla-only API but a compatibility patch included)

  • document.enableStyleSheetsForSet (CSSOM API, compatibility patch included though the implementation is not correct as spec)

CSS features this framework used:

  • media query (min-width)

  • css3 animation (WebKit extension, so u may not see animation in non-WebKit browsers)

Note: In general, all compatibility patches will be factor out and move to another project https://github.com/hax/homemade-html5 in the future.

slides's People

Contributors

hax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.