Giter Site home page Giter Site logo

instalax's Introduction

InstaLax: Panel Based Parallax Framework

https://github.com/kdubbicles/InstaLax/

Version: 1.0pre, Last updated: 04/04/2013

InstaLax lets developers render panel based sliding parallax experiences using data attributes and HTML

Getting Started

Add the scroller div

<div id="scroller"></div>

Define your container with a section tag below:

<div id="scroller"></div>

<section id="instalax">

</section>

Add a div with the class 'slide':

<div id="scroller"></div>

<section id="instalax">
	<div class="slide" data-fade="true" data-noslide="true">

    </div>
</section>

Inside, add a background div with the class bg, and an img tag inside:

<div id="scroller"></div>

<section id="instalax">
	<div class="slide" data-fade="true" data-noslide="true">
		<div class="bg">
            <img src="images/background.jpg"/>
        </div>
    </div>
</section>

Optionally, add a div for content and fill it with what you'd like. The attribute data-width is required:

<div id="scroller"></div>

<section id="instalax">
	<div class="slide" data-fade="true" data-noslide="true">
		<div class="bg">
            <img src="images/background.jpg"/>
        </div>
        <div class="content" data-width="400" data-start="center" data-stop="top" data-fade="out">
            <h1>Hello World</h1>
        </div>
    </div>
</section>

Continue adding slides and be amazing

The .slide tag has the following options:

  • data-fade: true || null

  • data-noslide: true || null

The .content tag has the following options

  • data-width: integer (required)

  • data-start: center || top || bottom

  • data-stop: center || top || bottom

  • data-fade: in || out

Examples

Demo:

http://dubmediagroup.com/InstaLax

Release History

1.0pre - (04/04/2013) Pre-Initial release

License

Copyright (c) 2011 Ken Wheeler Licensed under the MIT and GPL licenses.

Free as in Bacon.

instalax's People

Contributors

kenwheeler 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.