Coder Social home page Coder Social logo

tweenslideshow's Introduction

A basic Tween slideshow

Create amazing fullpage:

Installation

###Step 1: Link required files

html

<!-- tuinslider Javascript file -->
<script src="/js/tuinslider.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>

###Step 2: Create HTML markup

html

<div class="slider" id="slider">
  <div class="slider__container">
    <div class="slider__item"><div class="slider__content"></div></div>
    <div class="slider__item"><div class="slider__content"></div></div>
    <div class="slider__item"><div class="slider__content"></div></div>
    <div class="slider__item"><div class="slider__content"></div></div>
  </div>
</div>

###Step 3: Call the FullPage

Call .TuinSlider() on <div id="slider">.

var slider = new TuinSlider("#slider");

##Options

slider selector

default: '.slider'
options: String

ease

default: 'SlowMo'
options: 'Power0', 'Power1', 'Elastic'

easeType

default: 'easeOut'
options: 'ease', 'easeIn'

For more options

duration

default: 1,
options: int

arrows

default: 'true',
options: boolean (true / false)

pagination

default: 'true',
options: boolean (true / false)

keyboard

default: 'true',
options: boolean (true / false)

##Methods

move()

page.move(index);

##Callbacks onLeave

default: null,
option: onLeave: function(index) {},

afterLoad

default: null,
option: afterLoad: function(index) {},

Gulp commands

  • gulp —— Default for task development
  • gulp --prod —— Task production
  • Access http://localhost:3000

Change log

Version 1.0.0

  • Support for internet explorer 9.

##Image license Pixel Squid

Contributing

Everyone is welcome to help contribute and improve this project. There are several ways you can contribute:

  • Reporting issues (please read issue guidelines)
  • Suggesting new features
  • Writing or refactoring code
  • Fixing issues

Version BETA

**I create this fullpage for study, sorry for any bugs, contribute with this repo. Thank's enjoy! **

License:

This boilerplate is free and open source software, distributed under the The MIT License. So feel free to use this to create your site without linking back to me or using a disclaimer.

tweenslideshow's People

Watchers

James Cloos 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.