seq-theme-intro
v1.0.0
Published
The Sequence.js introduction theme used to briefly describe how Sequence.js works
Downloads
3
Maintainers
Readme
Intro - Sequence.js Theme
The Sequence.js introduction theme used to briefly describe how Sequence.js works
This theme is powered by Sequence.js - The responsive CSS animation framework for creating unique sliders, presentations, banners, and other step-based applications.
Theme URL: http://sequencejs.com/themes/intro/
Author: Ian Lunn - GitHub | Twitter | Email
Getting Started
To add a Sequence.js theme to your web page, complete the following:
- Download and unzip your theme
- Move the
intro
folder to the same folder as the page you'd like the Sequence.js theme to appear on - Add the theme's stylesheet within the
<head></head>
tags on your page, below existing stylesheets. For example:
<link rel="stylesheet" href="intro/css/sequence-theme.intro.css" />
- From
intro/index.html
, copy everything inside the<body></body>
tags, then paste into the page you'd like the theme to appear on. - From
intro/index.html
, copy any<script></script>
elements found toward the bottom of the page and paste just before the closing</body>
tag. This should include a reference to the Sequence.js library, its third-party dependencies, and the theme's options, for example:
<script src="intro/scripts/imagesloaded.pkgd.min.js"></script>
<script src="intro/scripts/hammer.min.js"></script>
<script src="intro/scripts/sequence.min.js"></script>
<script src="intro/scripts/sequence-theme.intro.js"></script>
- Save your file and view in the browser. You're done!
Customizing a Theme
To customize how a theme behaves, its Sequence.js options can be changed in intro/scripts/sequence-theme.intro.js
. See Options in the documentation.
To customize how a theme looks and how its step's transition, refer to the theme's stylesheet: intro/css/sequence-theme.intro.css
.
It is recommended to read Setting Up a Theme in the documentation for an overview of how transitions are applied to Sequence.js steps.
Using Grunt.js to Develop a Theme
If you are familiar with Grunt.js, you can use it to automate common development tasks. This however is optional and isn't required for a theme to work.
Sequence.js and the themes it powers use Grunt.js to automate useful tasks. With Grunt.js installed (see Grunt.js' Getting Started), use the following command to install this theme's development dependencies:
npm install
Once development dependencies have installed you can use the commands grunt serve
and grunt
.
grunt serve
This command will start a development environment with the following automated tasks:
- Starts a livereload session that will reload your browser whenever a file is changed (be sure to install livereload)
- Opens your browser and navigates to
http://localhost:8000/
- Sets up a watch task to run the following sub-tasks:
- Update the version number of the following files when changed in
package.json
:scripts/sequence-theme.intro.js
scss/sequence-theme.intro.scss
css/sequence-theme.intro.css
bower.json
- Process any
.scss
files found in thescss
directory, autoprefix them and then copy tocss
and minify - Refresh the browser when any changes are made in HTML, JS, CSS, or SCSS files
- Update the version number of the following files when changed in
You only need to run grunt serve
per each development session as the watch task will continue to operate as you modify files.
grunt
The grunt
command is a manual version of the watch sub tasks listed for the grunt serve
command.
Theme License
This theme is made available under a GPLv3 license.
Copyright © 2015 Ian Lunn Design Limited
Sequence.js License
This theme is powered by Sequence.js. Sequence.js is made available under the following licenses where applicable:
- GPLv3 - For personal and open-source projects
- Commercial License - For commercial projects
- Commercial OEM License - For commercial OEM projects